agreeable-window-77899
06/01/2022, 10:25 AMnew awsx.ec2.Vpc
to create a VPC for my application and I need to get the security group id which Pulumi Crosswalk automatically creates so that I can attach the security group to my RDS instance.
What is right way to fetch the auto-created security group details in Pulumi? Do I have to explicitly create the Security group on my own to do this?little-cartoon-10569
06/01/2022, 9:23 PMconst defaultSg = aws.ec2.getSecurityGroup("default", vpc.vpc.defaultSecurityGroupId);
agreeable-window-77899
06/02/2022, 7:29 AMManaged by Pulumi
is automatically created and assigned to the Fargate Service by Pulumi. I need to assign the same security group to the RDS so that the Fargate cluster can access the database. That is the reason I want to programatically pull the security group details.
And I do see the default
security group that you mentioned. But in this case the Fargate custer is auto assigned to the security group which is Managed by Pulumi
little-cartoon-10569
06/02/2022, 8:48 PMautomatically created and assigned to the Fargate Service by Pulumi. I need to assign the same security group to the RDS so that the Fargate cluster can access the databaseThat doesn't sound right. An SG can't automatically access things from other resources with the same SG. Are you sure you don't need to create a new SG that permits access from this automatically-created SG?