1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
"AWS::RDS::DBSecurityGroup" is a resource created exclusively for EC2-Classic.
EC2-Classic is already obsolete, so if you want to create it in a new VPC, etc., you need to create it using "VPCSecurityGroups".
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html
https://aws.amazon.com/jp/blogs/aws/ec2-classic-is-retiring-heres-how-to-prepare/
If you set DBSecurityGroups, you must not set VPCSecurityGroups, and vice versa. Also, note that the DBSecurityGroups property exists only for backwards compatibility with older regions and is no longer recommended for providing security information to an RDS DB instance. Instead, use VPCSecurityGroups.
Thanks very much for your reply - just to clarify, that would mean that the examples in the RDS CloudFormation docs are inaccurat or not update to date? https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-rds.html.
I think it's probably because the updates haven't caught up.