calm-quill-21760
02/27/2020, 7:45 PMlet thisGroup = createdSecGroups.get(thisGroupName);
if (item.allowed_other_sec_grps && item.allowed_other_sec_grps.length > 0) {
for (let allowed of item.allowed_other_sec_grps) {
let theOtherSecGrp = createdSecGroups.get(allowed + "_" + vpc);
if (theOtherSecGrp && thisGroup) {
thisGroup.egress.get().forEach(entry => {
entry.securityGroups = theOtherSecGrp!.id;
});
}
}
}
This line is invalid:
entry.securityGroups = theOtherSecGrp!.id;
It looks like securityGroups wants a resolved string[] value. I'm guessing this is another case where I'm thinking about this all wrong... Suggestions are appreciated!white-balloon-205
SecurityGroupRule
resource instead of specifying the rules inline in the SecurityGroup
.
See notes on https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/ec2/#SecurityGroupRule.calm-quill-21760
02/27/2020, 8:38 PMwhite-balloon-205