1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
Looking at the image, the port number set in the security group is MySQL (3306).
Therefore, I think it is possible that the CDK is referencing the wrong security group, or that the security group being checked is wrong.
Is the security group in the image created with CDK's "rdsProxySecurityGroup"?
Relevant content
- asked 2 years ago
- asked 2 years ago

Thanks for your answer. The picture is a just an example to show where my proxy inbound rules are located. See the code that I added above with port 5432 referencing a postgres database. Its that part that i am trying to adjust.
I think there is no problem with the code itself. When you run "cdk deploy", an inbound rule with "5432" will be added to "rdsProxySecurityGroup". https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.SecurityGroup.html
Does "cdk deploy" output any errors? Also, check the CloudFormation stack created by the CDK to see what the security group rules look like.