https://pulumi.com logo
s

salmon-ghost-86211

04/15/2020, 8:35 PM
I have run into an odd pulumi question. When I try to run 
pulumi up
, I get
Copy code
Diagnostics:
  aws:route53:Record (newDnsAlias-rw):
    error: Duplicate resource URN 'urn:pulumi:qa-red::eks-cluster::aws:route53/record:Record::newDnsAlias-rw'; try giving it a unique name
If I export the stack, that urn is not listed. Even if I just search for
newDnsAlias-rw
in the export, it is not found. If I try to delete it, it says it doesn't exist.
Copy code
$ pulumi state delete 'urn:pulumi:qa-red::eks-cluster::aws:route53/record:Record::newDnsAlias-rw'
 warning: This command will edit your stack's state directly. Confirm? Yes
error: No such resource "urn:pulumi:qa-red::eks-cluster::aws:route53/record:Record::newDnsAlias-rw" exists in the current state
Pulumi v1.14.1 Node v12.16.1 aws cli 1.18.39 kubectl v1.18.1 package.json has
latest
flag for everything except typescript. Let me know if you need anything from
package-lock.json
. Writing everything in
typescript
. Any insights?
f

fast-dinner-32080

04/15/2020, 8:39 PM
I am guessing this is a new resource that would be created on up but two resources are being created with the same name which is why you get that error.
So it wont show in the state cause they don't exist yet but you get the error cause it would create two with the same name.
s

salmon-ghost-86211

04/15/2020, 11:44 PM
There are not two in the code. Each new route53 call has a unique name.