ancient-manchester-28468
12/03/2023, 1:09 PMconst replication= new gcp.secretmanager.Secret("test", {
secretId: "test-mikhail",
replication: {
automatic: true,
},
});
To:
const replication= new gcp.secretmanager.Secret("test", {
secretId: "test-mikhail",
replication: {
auto: {},
},
});
When I do, pulumi recommends a 'replace':
├─ gcpsecretmanagerSecret test replace [diff: ~provider]
However, the replacement always fails because the existing resource already exist:
gcpsecretmanagerSecret (carbon-service-secret-APPLICATION_PROXY_PASSWORD):
error: 1 error occurred:
* Error creating Secret: googleapi: Error 409: Secret [projects/xxx/secrets/test] already exists.
I've tried pulumi refresh and it doesn't appear to fix the issue. I'm not exactly sure what I'm doing wrong, but it feels like it's a bug. Any ideas on how can I fix this issue?dry-keyboard-94795
12/03/2023, 1:19 PMdeleteBeforeReplace
to force the deletion to happen first:
https://www.pulumi.com/docs/concepts/options/deletebeforereplace/dry-keyboard-94795
12/03/2023, 1:26 PMup
, then migrate the secretsmanager code to use auto
, though I don't know if this will give you an in-place update.ancient-manchester-28468
12/03/2023, 2:37 PM