elegant-pager-5412
06/03/2021, 6:05 AMaws:lambda/function:Function resource 'DEV-Lambda' has a problem: Computed attributes cannot be set: Computed attributes cannot be set, but a value was set for "vpc_config.0.vpc_id".. Examine values at 'Function.VpcConfig.VpcId'
little-cartoon-10569
06/03/2021, 6:33 AMelegant-pager-5412
06/03/2021, 6:56 AMstackA
and trying to use them in stackB
by using the stackReference
feature. Why does it fail? The resources exists (as I imported them)little-cartoon-10569
06/03/2021, 7:20 AMelegant-pager-5412
06/03/2021, 7:20 AMlittle-cartoon-10569
06/03/2021, 7:21 AMlambda.vpcConfig[0].vpcId
, which isn't correct. Is that in your code?elegant-pager-5412
06/03/2021, 7:28 AMvpcConfig = {
vpcId: 'vpc-id-of-vpc',
subnetIds: ['subnet-0x9173283495'],
securityGroupIds: ['sg-jdfg93457345'],
};
vpcId
does not give me this error anymorelittle-cartoon-10569
06/03/2021, 7:30 AMelegant-pager-5412
06/03/2021, 7:30 AMlittle-cartoon-10569
06/03/2021, 7:43 AMelegant-pager-5412
06/03/2021, 7:50 AM{
/**
* List of security group IDs associated with the Lambda function.
*/
securityGroupIds: pulumi.Input<pulumi.Input<string>[]>;
/**
* List of subnet IDs associated with the Lambda function.
*/
subnetIds: pulumi.Input<pulumi.Input<string>[]>;
vpcId?: pulumi.Input<string>;
}
little-cartoon-10569
06/03/2021, 8:06 AMfunc.vpcConfig[0] = vpcConfig
? Because that's the only thing I can think of. If that's not it, then you'll need someone smarter than me...\elegant-pager-5412
06/03/2021, 8:14 AM