sparse-intern-71089
06/01/2022, 10:25 AMlittle-cartoon-10569
06/01/2022, 9:23 PMlittle-cartoon-10569
06/01/2022, 9:24 PMlittle-cartoon-10569
06/01/2022, 9:27 PMconst defaultSg = aws.ec2.getSecurityGroup("default", vpc.vpc.defaultSecurityGroupId);
little-cartoon-10569
06/01/2022, 9:29 PMagreeable-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
agreeable-window-77899
06/02/2022, 7:30 AMlittle-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?