Skip to content

Commit

Permalink
feat(deploy): add fields for deployment customization
Browse files Browse the repository at this point in the history
- add field for custom graph build ami/instance type
- add field for custom region
  • Loading branch information
evansiroky committed Feb 26, 2020
1 parent dcfcf1c commit b7c05da
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
3 changes: 3 additions & 0 deletions i18n/english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,13 @@ components:
delete: Remove
ec2Info:
amiId: AMI ID
buildAmiId: Graph build AMI ID
buildInstanceType: Graph build instance type
instanceCount: Instance count
instanceType: Instance type
iamInstanceProfileArn: IAM Instance Profile ARN
keyName: Key file name
region: Region name
securityGroupId: Security Group ID
subnetId: Subnet ID
targetGroupArn: Target Group ARN (load balancer)
Expand Down
21 changes: 18 additions & 3 deletions lib/manager/util/deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,38 @@ export const SERVER_FIELDS: Array<FormProps> = [

export const EC2_INFO_FIELDS: Array<FormProps> = [
{
name: 'otpServers.$index.ec2Info.region',
placeholder: 'defaults to datatools region',
type: 'text',
width: 12
}, {
name: 'otpServers.$index.ec2Info.instanceType',
placeholder: 't2.medium',
type: 'text',
width: 6
width: 12
}, {
name: 'otpServers.$index.ec2Info.amiId',
placeholder: 'defaults to system OTP AMI',
type: 'text',
width: 8
width: 12
}, {
name: 'otpServers.$index.ec2Info.buildInstanceType',
placeholder: 't2.medium',
type: 'text',
width: 12
}, {
name: 'otpServers.$index.ec2Info.buildAmiId',
placeholder: 'defaults to system OTP AMI',
type: 'text',
width: 12
}, {
max: 3, // set max # of servers to 3 in UI to prevent something crazy happening.
min: 1,
name: 'otpServers.$index.ec2Info.instanceCount',
placeholder: 'defaults to 1',
step: '1', // integer
type: 'number',
width: 4
width: 12
}, {
name: 'otpServers.$index.ec2Info.targetGroupArn',
placeholder: 'arn:aws:elasticloadbalancing:us-east-1:12345678:targetgroup/target-group-name/12345678abcd',
Expand Down

0 comments on commit b7c05da

Please # to comment.