I am creating a Database cluster with two DB instance using cloudformation.
For this i am able to create
DBSecGroup:
Type: AWS::EC2::SecurityGroup
Then i need to reference it in property VpcSecurityGroupIds.
DBCluster:
Type: "AWS::RDS::DBCluster"
VpcSecurityGroupIds: ?
VpcSecurityGroupIds requires List. Not sure how i can do this.
Try one of these two:
DBCluster:
Type: AWS::RDS::DBCluster
Properties:
VpcSecurityGroupIds:
- !GetAtt DBSecGroup.GroupId
DBCluster:
Type: AWS::RDS::DBCluster
Properties:
VpcSecurityGroupIds:
- !Ref DBSecGroup
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#w2ab1c21c10d102d104c13
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With