brash-finland-19802
11/13/2023, 7:24 PMall
callback since the AWS API supports an update
i know i can do it all in one step and this isn't a very declarative question but i'm working on something lower level that would benefit from thisbrave-planet-10645
11/13/2023, 8:18 PMbrash-finland-19802
11/13/2023, 8:21 PMbrave-planet-10645
11/13/2023, 8:22 PMbrash-finland-19802
11/13/2023, 8:23 PMbrave-planet-10645
11/13/2023, 8:24 PMUpdateFunctionEnv
do?brash-finland-19802
11/13/2023, 8:29 PMUpdateFunctionConfiguration
aws-sdk v3 commandwhite-balloon-205
Command
package is probably the best way to go for now. That will ensure you can control the lifecycle of these additional actions as part of the CRUD lifecycle (unlike with apply
which just runs on every update).
We would love in the future to allow something like Command but with callbacks you can implement directly in code (as callbacks invoked on Create/Update/Delete), so that you could just use the SDK directly instead of having an AWS CLI dependency.
There's some other discussion on future opportunities in this direction in https://github.com/pulumi/pulumi/issues/3021, https://github.com/pulumi/pulumi/issues/13999 and https://www.pulumi.com/blog/exploring-circular-dependencies/.brash-finland-19802
11/13/2023, 8:48 PM