most-lighter-1731
12/02/2019, 10:48 AMpulumi up
. I'm currently getting a runtime error because it seems pulumi is trying to execute the task during preview inspite of the fact that the call to TaskDefinition.run()
is inside a pulumi apply
call. How can I make sure this code is executed during deployment and not before ? The relevant error is
error: Running program '/home/luis/Code/outmind/outmind-app/aws-architecture/src/index.ts' failed with an unhandled exception:
Error: Cannot call '.get' during update or preview.
To manipulate the value of this Output, use '.apply' instead.
and the origin of this is on node_modules/@pulumi/ecs/taskDefinition.ts:226:39
where the code is getting the cluster id.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by