https://pulumi.com logo
#typescript
Title
# typescript
m

many-psychiatrist-74327

09/14/2020, 5:01 PM
👋 hello! is there a way to achieve
deleteBeforeReplace
behavior when using the
@pulumi/eks
package?
More specifically, I want to basically call:
Copy code
const cluster = new eks.Cluster('my-cluster', {}, { deleteBeforeReplace: true })
but looks like the property
deleteBeforeReplace
does not exist in ComponentResourceOptions. (asking in #typescript since this library is only available for TS/JS, but may cross-post to #aws )
g

gentle-diamond-70147

09/14/2020, 9:09 PM
the
eks.Cluster
is a component resource, so you can add or override
deleteBeforeReplace
on any of it's sub-resources using a transformation - https://www.pulumi.com/docs/intro/concepts/programming-model/#transformations
m

many-psychiatrist-74327

09/14/2020, 9:52 PM
ah, i see. i’ll give it a shot, thank you!