Open christrt9 opened 11 months ago
I'm going to move this to the aws repo as I suspect this is either an issue with the upstream TF provider (or possibly even AWS API itself).
@r00t9, are you still running into this?
A comment on the PR that added this resource to the upstream TF provider mentions a similar error: https://github.com/hashicorp/terraform-provider-aws/pull/15302#issuecomment-710010937
I created a module inside which there is a aws_msk_sasl_scram_secret that attach a single secret to the cluster passed as parameter (and do other things). When calling this module twice, it fails to some time. Maybe a race condition with AWS API ?
@justinvp I deleted this stack and recreated it, but not sure if I can do that in a production environment.
Hi @r00t9. It sounds like you are reporting two separate bugs:
To confirm the reproduction steps:
msk_cluster
(not included), a secret, and associate the secret with the msk_cluster
. This works as expected.pulumi refresh
, which errors with couldn't find resource
.Expected behavior: pulumi refresh
detects that the resource was deleted and removes it from your state.
Work-around: Manually delete the resource from state with pulumi state delete
and then run pulumi up
again.
When a secret association doesn't exist, and you run pulumi up
to create the aws.msk.ScramSecretAssociation
, pulumi up
errors with The requested resource doesn’t exist.
.
Repro:
pulumi up
with your example program.Work-around: try again until successful.
Is ☝️ accurate?
What happened?
Someone delete from AWS one secret key. I try refresh but still get this error message
couldn't find resource
Then i delete it from stack with
pulumi state delete --target-dependents
And i run again to Deploy.
The secret exist
But when i run
pulumi up
sometimes i get this error messageThe requested resource doesn’t exist.
and sometimes is working fine with the same code, nothing change :/One time is running correct next time is with error and again the same.
I try to run
pulumi refresh
still the sameExample
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).