Closed erkolson closed 4 years ago
I'm getting the same error with v0.11.3. Also you can't import an Apex record with its correct id which would be e.g. "ZONEID__MX".
Error: aws_route53_record.mx (import id: ZONEID__MX): 1 error(s) occurred:
* import aws_route53_record.mx result: ZONEID__MX: aws_route53_record.mx: Error Importing aws_route_53 record. Please make sure the record ID is in the form ZONEID_RECORDNAME_TYPE (i.e. Z4KAPRWWNC7JR_dev_A
I can import it with "ZONEID_DOMAINNAME_MX" but then the resource will be recreated at the next apply as the ids don't match.
After doing the import the second way I got the same "diffs didn't match during apply" error mentioned in this issue.
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Terraform Version
Terraform v0.10.3
Affected Resource(s)
Terraform Configuration Files
Debug Output
Error during run:
Expected Behavior
The apply should complete without error, but also, after importing, there should be no need to apply anything (assuming the TTL matches)? Possibly related to this: https://github.com/terraform-providers/terraform-provider-aws/issues/1031
Actual Behavior
I imported an A record at the zone apex, then did a
terraform plan
. It showed the following changes:Then when I ran
terraform apply
the error above occured.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform import ...
terraform plan
terraform apply
Important Factoids
I did the exact same thing,
terraform import
,terraform plan
,terraform apply
with a CNAME atwww.mydomain.com
at the same time. That applied with no issues but still wanted to destroy/create because of the name bug (the ttl in the case of the CNAME matched what was already there in the record).References