Hello all, I ran into an issue with the `deleteBef...
# general
b
Hello all, I ran into an issue with the
deleteBeforeReplace: 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?
Copy 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/11259
I was able to discover I had a miss-understanding of how the
deleteBeforeReplace
flag worked in the issue references above.