Is it possible to import a Route53 record? I'm try...
# aws
l
Is it possible to import a Route53 record? I'm trying to import one (previously created by Pulumi but removed from state), and it's failing due to not finding the mandatory name and records properties.
It says
warning: inputs to import do not match the existing resource; importing this resource will fail
because I'm getting this from the import diff:
Copy code
- name   : "<http://_d6d62a7c4af3d0436715db1baca934.example.com|_d6d62a7c4af3d0436715db1baca934.example.com>"
~ records: [
    - [0]: "_354679b838ae1b4f6aaa8def1cfd27.zzdlnjjwx.acm-validations.aws."
  ]
So it's not pulling the name and records[0] properties from Route53. I can see them in the console though.
When I run
pulumi import
(rather than
pulumi preview
with an import opt, which is what I was doing above) then I see the name and records[0] properties as expected... 🤔
Solved. Turns out the output properties I was populating the name and records[0] properties with were blank due to a previous bad import. (the domainValidationOptions of an aws.acm.Certificate aren't populated on refresh).