busy-dentist-99842
11/04/2022, 5:35 PMdeleteBeforeReplace: true
property in CustomResourceOptions
. It seems like it's not getting applied to the resource. When I run pulumi up
. Pulumi still tries to do a create before delete on a replacement.
I put in the issue below but does anyone see an obvious error in my code?
import * as aws from '@pulumi/aws';
const cluster = new aws.ecs.Cluster('playground', {name: 'playground'});
new aws.ecs.ClusterCapacityProviders(
'playground',
{
clusterName: 'playground',
capacityProviders: ['FARGATE'],
defaultCapacityProviderStrategies: [
{
base: 1,
capacityProvider: 'FARGATE',
weight: 100,
},
],
},
{
dependsOn: cluster,
deleteBeforeReplace: true,
}
);
https://github.com/pulumi/pulumi/issues/11259deleteBeforeReplace
flag worked in the issue references above.