This message was deleted.
# aws
s
This message was deleted.
g
Are you looking to get the security group that's part of your new VPC, or a generic default that would have gotten created with a default VPC? If you're looking for the existing one, I think you want https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/ec2/#SecurityGroup-fromExistingId
r
Hello Laura. I'm looking for the default securitygroup of the new created VPC. Thanks so much.
g
Gotcha; you'll want that call I posted, then
r
Hi Laura. As I see the suggested call requires to know the securitygroup ID and I don't know how to retrieve it from new created VPC. Any idea and/or suggestions...?..thanks a lot.
Probably I find the solution. If the new created VPC is called i.e. myvpc, then 'myvpc.vpc.defaultSecurityGroupId;' return the default securitygroup ID. Thanks very much for your contribute. Francesco
👍 1