nutritious-battery-42762
04/04/2022, 2:24 PMmillions-furniture-75402
04/04/2022, 3:09 PMpulumi
.all([appSecurityGroup.id, sharedDbSecurityGroupId])
.apply(async ([appSecurityGroupId, sharedDbSecurityGroupId]) => {
const sharedDbSecurityGroup = awsx.ec2.SecurityGroup.fromExistingId("shared-db-sg", sharedDbSecurityGroupId, {
vpc: vpc.vpc,
});
awsx.ec2.SecurityGroupRule.ingress(
`${appName}-db-sg-rule-ingress`,
sharedDbSecurityGroup,
{
sourceSecurityGroupId: appSecurityGroupId,
},
new awsx.ec2.TcpPorts(3306),
`For ${appName}`,
);
});
little-cartoon-10569
04/04/2022, 9:24 PM