https://pulumi.com logo
#aws
Title
# aws
l

lemon-machine-35564

02/22/2021, 6:31 PM
Is it possible to add 
deleteBeforeReplace: true
 to an API Gateway deployment created via Crosswalk? Don’t see it as possible via 
deploymentArgs
b

billowy-army-68599

02/22/2021, 6:36 PM
the API gateway is part of a Pulumi component resources, so you don't have direct access to the resource properties. You can do it via a transformation: https://www.pulumi.com/docs/intro/concepts/resources/#transformations Is there a reason you want to do this? it could create outages
l

lemon-machine-35564

02/22/2021, 6:47 PM
Yeah, ran into a problem where turning off Lambda auto-naming w/ Crosswalk gives us
Active stages pointing to this deployment must be moved or deleted
So we don’t really know how to proceed
b

billowy-army-68599

02/22/2021, 6:49 PM
that's part of the reason auto-naming is enabled by default. is there a use case for turning it off on the lambda?
l

lemon-machine-35564

02/22/2021, 6:51 PM
We have a few internal reasons for doing so, nothing very interesting tbh. 😄
But yeah, when using Crosswalk, autonaming is a must I suppose?
b

billowy-army-68599

02/22/2021, 6:55 PM
it's not necessarily a crosswalk thing, it's designed to work about these situations where the AWS resource is immutable. we build it into Pulumi for this reason
l

lemon-machine-35564

02/22/2021, 6:56 PM
Right, gotcha. I’ll see what we can do. Appreciate the insight.
2 Views