diff --git a/cloudformation.json b/cloudformation.json index 3cc5e697..73c84c3b 100644 --- a/cloudformation.json +++ b/cloudformation.json @@ -106,6 +106,25 @@ "Value": { "Ref": "MyInstanceProfile" } + }, + { + "Namespace": "aws:ec2:vpc", + "OptionName": "VPCId", + "Value": { "Ref" : "VpcId" } + }, + { + "Namespace": "aws:ec2:vpc", + "OptionName": "Subnets", + "Value" : { + "Fn::Join": [",", { "Ref" : "Subnets" }] + } + }, + { + "Namespace": "aws:ec2:vpc", + "OptionName": "ELBSubnets", + "Value" : { + "Fn::Select": ["0", {"Ref" : "Subnets" }] + } } ], "SolutionStackName": "64bit Amazon Linux 2023 v4.0.0 running Docker" @@ -133,6 +152,25 @@ "Value": { "Ref": "MyInstanceProfile" } + }, + { + "Namespace": "aws:ec2:vpc", + "OptionName": "VPCId", + "Value": { "Ref" : "VpcId" } + }, + { + "Namespace": "aws:ec2:vpc", + "OptionName": "Subnets", + "Value" : { + "Fn::Join": [",", { "Ref" : "Subnets" }] + } + }, + { + "Namespace": "aws:ec2:vpc", + "OptionName": "ELBSubnets", + "Value" : { + "Fn::Select": ["0", {"Ref" : "Subnets" }] + } } ], "SolutionStackName": "64bit Amazon Linux 2023 v4.0.0 running Docker"