Skip to content
Discussion options

You must be logged in to vote

I am wondering what rule does this SharedSecurityGroup contain ?

This is being imported, so it could have any valid security group rule.

how does CDK retrieve the clusterSecurityGroup in CFN and use its value

The CDK isn't actually making any lookups - importing the security group is just a way to be able to pass data around. addSecurityGroup requires an ISecurityGroup, so either you need to create a new L2 SecurityGroup, or import one. When importing a SecurityGroup and passing it to addSecurityGroup, it will simply take the arn that it built based off the securityGroupId provided and specify it somewhere in the template. See more info here on importing resources, and let me know if …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Zhenye-Na
Comment options

You must be logged in to vote
1 reply
@Zhenye-Na
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants