sparse-intern-71089
07/10/2021, 10:14 PMbored-oyster-3147
07/11/2021, 6:29 PMwonderful-piano-20316
07/11/2021, 9:33 PMbored-oyster-3147
07/12/2021, 1:34 PMwonderful-piano-20316
07/12/2021, 6:40 PMbored-oyster-3147
07/12/2021, 7:27 PMwonderful-piano-20316
07/13/2021, 1:02 PMbored-oyster-3147
07/13/2021, 1:37 PMbackend optionwonderful-piano-20316
07/13/2021, 6:40 PMbored-oyster-3147
07/13/2021, 7:32 PMwonderful-piano-20316
07/13/2021, 8:10 PMbored-oyster-3147
07/13/2021, 8:12 PMs3.Bucket is being given a different name each time your pulumi program executesbored-oyster-3147
07/13/2021, 8:13 PMwonderful-piano-20316
07/14/2021, 12:00 PMbored-oyster-3147
07/14/2021, 12:49 PMconst bucket = new gcp.storage.Bucket(content);
look here:
https://www.pulumi.com/docs/reference/pkg/gcp/storage/bucket/#create
The first argument to create any pulumi resource is the pulumi name. This name is how pulumi tracks resources between calls to pulumi up. If you want pulumi to track and update a resource, than the name must be the same on every call to pulumi up otherwise pulumi will see it as a different resource and destroy/createbored-oyster-3147
07/14/2021, 12:51 PMcontent? So you're making a request with the same stackName and bucketName everytime and still seeing create/destroy? If that's the case than scrap what I just said.
I will say that I don't see you setting the backend property in the sample code as we discussed, that could definitely be an issue. It should be set somewhere in here:
const stack = await LocalWorkspace.createOrSelectStack({
stackName,
projectName,
program: createPulumiProgram(content)
});