All of the documentation reads like "const record = new aws.route53.Record" should update a record if it exists, but I keep getting:
error: 1 error occurred:
* creating Route 53 Record: InvalidChangeBatch: [Tried to create resource record set [name='record.abc.com.', type='A'] but it already exists]
l
little-cartoon-10569
02/09/2024, 2:23 AM
It will update the record if it exists and is already managed by Pulumi. If Pulumi doesn't manage it, you need to import it into Pulumi, first.
little-cartoon-10569
02/09/2024, 2:24 AM
Since Pulumi doesn't know it exists, it can't know to update it, so it tries to create it.
b
bland-painting-33593
02/09/2024, 4:23 AM
It did originally create it, though.
bland-painting-33593
02/09/2024, 4:23 AM
I can try to import it, but I've only touched it through the console once after it created it, I changed something, and it refused to update it after.
bland-painting-33593
02/09/2024, 5:13 PM
Oh, for once, the AI gave me the answer correctly. The aws.route53.Record examples should probably include this or make it more clear. I need this added to it:
allowOverwrite: true,