damp-lamp-30288
12/09/2022, 3:20 AMDuplicate resource URN
. However there is no other KMS key in this stack and no duplicate URN. I have exported the stack to JSON and verified that there is no matching URN.
error: Duplicate resource URN 'urn:pulumi:production::jackpot-reader::aws:kms/key:Key::jackpot-reader-production-key'; try giving it a unique name
Even weirder, when I go back to a previous commit (before the KMS key was in the stack) and run a pulumi preview
, in the diff it shows that it's trying to create the KMS Key! Yet there's no key in the IaC!
...
+ └─ aws:kms:Key jackpot-reader-production-key create
+ └─ aws:kms:Alias key-alias create
...
Changing the name just creates two keys as well! (one with the new and one with the old)
...
+ ├─ aws:kms:Key jackpot-reader-production-kms-key create
+ │ └─ aws:kms:Alias jackpot-reader-production-kms-key-alias create
+ ├─ aws:kms:Key jackpot-reader-production-key create
+ │ └─ aws:kms:Alias key-alias create
...
Any help would be appreciated as we are essentially blocked from deploying this stack.
Versions:
"@pulumi/aws": "^4.38.0"
"@pulumi/pulumi": "^2.1.0"
We are using TypeScript as well.
I've tried updating the AWS package, pulumi package, refreshing the stack but no luck.little-cartoon-10569
12/09/2022, 3:38 AMdamp-lamp-30288
12/09/2022, 3:39 AM./dist
or ./bin
in the working directorylittle-cartoon-10569
12/09/2022, 3:49 AMruntime:
name: nodejes
options:
typescript: false
damp-lamp-30288
12/09/2022, 3:54 AMcreate
so I've applied that. However I keep getting strange diffs in the stack when I change no IaC. This may be an issue with the AWS pulumi package...little-cartoon-10569
12/09/2022, 4:02 AMpulumi refresh
?damp-lamp-30288
12/09/2022, 4:07 AMpulumi refresh
, I'm thinking this is an issue with the AWS package. I'm not getting repeatable deploys here, I change no IaC and have diffs between ups where I shouldn't...