reverting VPC
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
option_settings:
|
option_settings:
|
||||||
aws:ec2:vpc:
|
aws:ec2:vpc:
|
||||||
VPCId: { "FN::ImportValue": "temp-vpc-ELBStrapiPublicVPC" }
|
VPCId: "vpc-003597eb63a0a3efe"
|
||||||
Subnets: "subnet-02cd8f7981ddfe345,subnet-02d9e1338e8d92d09,subnet-0e07d4d35394db524"
|
Subnets: "subnet-02cd8f7981ddfe345,subnet-02d9e1338e8d92d09,subnet-0e07d4d35394db524"
|
||||||
DBSubnets: "subnet-02cd8f7981ddfe345,subnet-02d9e1338e8d92d09,subnet-0e07d4d35394db524"
|
DBSubnets: "subnet-02cd8f7981ddfe345,subnet-02d9e1338e8d92d09,subnet-0e07d4d35394db524"
|
||||||
|
|||||||
21
todo.md
21
todo.md
@@ -55,24 +55,5 @@ option_settings:
|
|||||||
Recreate env with database, check the DB subnets - are they the same as the EC2 subnets? If so we can reference them in https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-ec2vpc with ELBSubnets
|
Recreate env with database, check the DB subnets - are they the same as the EC2 subnets? If so we can reference them in https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-ec2vpc with ELBSubnets
|
||||||
|
|
||||||
Can we use cloudformation functions (imports) in .config files under option_settings? (reference a VPC that already exists?) (https://www.reddit.com/r/aws/comments/a2uoae/is_there_a_way_to_reference_an_elastic_beanstalk/) Yes?
|
Can we use cloudformation functions (imports) in .config files under option_settings? (reference a VPC that already exists?) (https://www.reddit.com/r/aws/comments/a2uoae/is_there_a_way_to_reference_an_elastic_beanstalk/) Yes?
|
||||||
|
Yes but only certain functions: <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions-functions.html#ebextensions-functions-getatt>. You cannot use FN::ImportValue to reference a resource in another Cloudformation stack.
|
||||||
|
|
||||||
|
|
||||||
Append the stackname to the outputs for the VPC and Subnets
|
|
||||||
|
|
||||||
!Sub "${AWS::StackName}-VPCID"
|
|
||||||
|
|
||||||
Name: !Sub "${AWS::StackName}-ELBStrapiPublicVPC"
|
|
||||||
Name: !Sub "${AWS::StackName}-ELBStrapiSubnet0"
|
|
||||||
Name: !Sub "${AWS::StackName}-ELBStrapiSubnet1"
|
|
||||||
Name: !Sub "${AWS::StackName}-ELBStrapiSubnet2"
|
|
||||||
|
|
||||||
temp-vpc-ELBStrapiPublicVPC
|
|
||||||
temp-vpc-ELBStrapiSubnet0
|
|
||||||
temp-vpc-ELBStrapiSubnet1
|
|
||||||
temp-vpc-ELBStrapiSubnet2
|
|
||||||
|
|
||||||
{ "Fn::ImportValue": "awseb-e-abcdefghijklmno-AutoScalingGroup" }
|
|
||||||
|
|
||||||
Use join for subnets Name: !Join [ ":", [ !Ref "AWS::StackName", AccountVPC ] ]
|
|
||||||
|
|
||||||
Updating 07 config to accept a parameter
|
|
||||||
|
|||||||
Reference in New Issue
Block a user