Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to import existing registered domain into aws_route53domains_registered_domain #38279

Closed
OpenSourceSteve opened this issue Jul 8, 2024 · 5 comments
Labels
bug Addresses a defect in current functionality. service/route53domains Issues and PRs that pertain to the route53domains service.

Comments

@OpenSourceSteve
Copy link

Terraform Core Version

1.9.1

AWS Provider Version

4.67.0

Affected Resource(s)

aws_route53domains_registered_domain

Expected Behavior

The documentation here (bottom of page) indicates that existing registered domains may be imported.

Actual Behavior

When I run terraform plan I get the following error message:

Planning failed. Terraform encountered an error while generating this plan.

│ Error: resource aws_route53domains_registered_domain doesn't support import

Relevant Error/Panic Output Snippet

import {
  to = aws_route53domains_registered_domain.mydomainhere_com
  id = "mydomainhere.com"
}

resource "aws_route53domains_registered_domain" "mydomainhere_com" {
  domain_name = "mydomainhere.com"

  name_server {
    name = "ns-1654.awsdns-14.co.uk"
  }

  name_server {
    name = "ns-667.awsdns-19.net"
  }

  name_server {
    name = "ns-271.awsdns-33.com"
  }

  name_server {
    name = "ns-1271.awsdns-30.org"
  }
}

> Planning failed. Terraform encountered an error while generating this plan.
> 
>> │ Error: resource aws_route53domains_registered_domain doesn't support import
> │ 
> │ 
> ╵

Terraform Configuration Files

main.tf
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}

required_version = ">= 1.2.0"
}

route_53_registered_domains.tf
import {
to = aws_route53domains_registered_domain.mydomainhere_com
id = "mydomainhere.com"
}

resource "aws_route53domains_registered_domain" "mydomainhere_com" {
domain_name = "mydomainhere.com"

name_server {
name = "ns-1654.awsdns-14.co.uk"
}

name_server {
name = "ns-667.awsdns-19.net"
}

name_server {
name = "ns-271.awsdns-33.com"
}

name_server {
name = "ns-1271.awsdns-30.org"
}
}

Steps to Reproduce

terraform plan

Debug Output

No response

Panic Output

No response

Important Factoids

This issue could be related to #37670

References

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53domains_registered_domain#import

Would you like to implement a fix?

None

@OpenSourceSteve OpenSourceSteve added the bug Addresses a defect in current functionality. label Jul 8, 2024
Copy link

github-actions bot commented Jul 8, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/route53domains Issues and PRs that pertain to the route53domains service. label Jul 8, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Jul 8, 2024
@calvinbui
Copy link

@OpenSourceSteve
Copy link
Author

Thank you!

Copy link

github-actions bot commented Jul 8, 2024

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@terraform-aws-provider terraform-aws-provider bot removed the needs-triage Waiting for first response or review from a maintainer. label Jul 8, 2024
Copy link

github-actions bot commented Aug 7, 2024

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/route53domains Issues and PRs that pertain to the route53domains service.
Projects
None yet
Development

No branches or pull requests

2 participants