This message was deleted.
# general
s
This message was deleted.
e
Pulumi doesn't support destroy before create currently (see https://github.com/pulumi/pulumi/issues/2877). You'll probably have to do this as two updates.
r
@echoing-dinner-19531 - I'm looking for
create_before_destroy
flag on the API Gateway deployment resource so that it creates the new resource before it tries to delete the existing depploymentresource because an active stage is pointing to it.
Also, It's not very clear to me from GitHub issue how to do 2 updates to re-deploy the API Gateway related changes.
e
Ah right sorry got words flipped around. Pulumi's default behaviour matches terraforms of create_before_destroy=true, so you shouldn't have to do anything.
If your creating a new API gateway resource you'll need to do that in two steps though. One
pulumi up
to delete teh current gateway, then add the new gateway resource and
pulumi up
again.
r
I'm creating a child resource of the parent resource.. so do i still need to delete the whole gateway ?
or just the resource part in the gateway ?
e
I don't know API gateway well enough to say for sure. I'd suspect not, but see what errors happen.
r
ok, no worries. will try and let you know how it goes.
@echoing-dinner-19531 - is there a way to specify the json filename (instead of actual contents) as the value of a key in stack configuration file ?
e
Not currently, some thinking around that in https://github.com/pulumi/pulumi/issues/11872
r
got it, thanks