elegant-pager-5412
04/26/2021, 5:13 AMread-only
and I can’t alter them, which means that the only way I can change them is by re-creating a lambda and copy all of the settings… Why doesn’t pulumi allow changes to resources?
By not doing so, it becomes immensely painful to create wrappers around common workflows such as SQS -> Lambda
pattern.billowy-army-68599
04/26/2021, 5:20 AMelegant-pager-5412
04/26/2021, 5:58 AMconst foo = new aws.lambda.CallbackFunction(…)
and somewhere else I want to change that callback’s environment variables:
foo.environment.variables = merge(foo.environment.variables, {foo: 'bar'})
This isn’t possible to do, at least with the ts
version of Pulumi. Maybe we can do it, but the errors are all overbillowy-army-68599
04/26/2021, 6:03 AMelegant-pager-5412
04/26/2021, 6:03 AMbillowy-army-68599
04/26/2021, 6:08 AMelegant-pager-5412
04/26/2021, 6:13 AMbillowy-army-68599
04/26/2021, 6:17 AMelegant-pager-5412
04/26/2021, 7:06 AM