Is there a way to invoke `{ cluster });` ...
# general
Is there a way to invoke{ cluster });
on a FargateTaskDefinition at the top-level of our pulumi program during update? We are trying to run a one-off task inside a container, without needing lambda like in .
There’s not a super easy way today. You can do it with the aws-sdk directly - but that involves a bit of work. Question - when do you want it to run? 1. On every run of the program 2. Only on updates (not previews) 3. Only once when it is first “created” and then only again if something it depends on changes (like a resource being “replaced”) 4. Something else?
@white-balloon-205 We only want to run it during
and toggle whether to run it from pulumi.config value or just comment/uncomment the
code. Basically if I have a one-off task container that indexes some documents in Elasticsearch, would be good to have pulumi run it, as it has all the necessary parameters, right now we go to the AWS ECS console to run the one-off tasks which is workaround.