prehistoric-waitress-34998
11/10/2022, 12:56 PMfailure Setting LB Security Groups: ValidationError: A security group must be specified
If it run the task again without any changes it completes fine. I’m getting the security group ids from another stack, and passing them into the resource like this:
// Create load balancer to listen for HTTP traffic
const alb = new awsx.lb.ApplicationLoadBalancer(
`${name}-alb`,
{
securityGroups: args.apiSecurityGroupIds,
subnets: args.subnetIds,
vpc,
},
{
parent: this,
}
)
Does anyone know why this might be happening? I’ve logged out the inputs and the ids are definitely there each time it runs…billowy-army-68599
11/10/2022, 4:48 PMprehistoric-waitress-34998
11/10/2022, 4:49 PM^5.18.0
in my package.jsonbillowy-army-68599
11/10/2022, 5:01 PMaws
, not awsX
. can you share your package.json
?prehistoric-waitress-34998
11/10/2022, 7:08 PM^0.40.1
{
"name": "app",
"main": "index.ts",
"devDependencies": {
"@types/node": "^14"
},
"dependencies": {
"@pulumi/aws": "^5.18.0",
"@pulumi/awsx": "^0.40.1",
"@pulumi/docker": "^3.5.0",
"@pulumi/pulumi": "^3.0.0"
}
}
billowy-army-68599
11/10/2022, 7:35 PMsecurityGroups: args.apiSecurityGroupIds
created? outside a component?prehistoric-waitress-34998
11/10/2022, 7:36 PMbillowy-army-68599
11/10/2022, 7:44 PMprehistoric-waitress-34998
11/10/2022, 7:45 PMbillowy-army-68599
11/10/2022, 8:15 PMprehistoric-waitress-34998
11/10/2022, 8:42 PM