https://pulumi.com logo
b

big-nail-28315

09/16/2019, 10:55 PM
When creating a aws.route53.Record, I’m getting the error: Diagnostics: awsroute53Record (somerecordname): error: Duplicate resource URN ‘urnpulumidev:apiawsroute53/recordRecord:somerecordname’; try giving it a unique name I’m getting this error regardless of the name I give the Record
The Zone is being created just fine, but the A and AAAA records have this issue
f

future-barista-68134

09/16/2019, 11:22 PM
You have the same name for both of the new record resources, pulumi resource names should be globally unique. Try appending a string to each of the resources to identify it. I.e.
config.require("stack") + "." + zoneName + "A"
instead of
config.require("stack") + "." + zoneName
b

big-nail-28315

09/17/2019, 1:25 PM
When I remove the second one I get the same issue
I’ll keep working through it and ping later
👍 1