hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.82k stars 9.17k forks source link

[Bug]: "aws_route53domains_registered_domain" fail to change contacts due to missing block "consent" #35949

Open obouchta opened 8 months ago

obouchta commented 8 months ago

Terraform Core Version

1.6.0

AWS Provider Version

5.38

Affected Resource(s)

aws_route53domains_registered_domain

Expected Behavior

Plan : Change the contact information Apply : Apply changes successfully.

Actual Behavior

Plan : Change the contact information Apply : Failed to apply changes

Relevant Error/Panic Output Snippet

Error: error updating Route 53 Domains Domain (example.fr) contacts: operation error Route 53 Domains: UpdateDomainContact, https response error StatusCode: 400, RequestID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx, InvalidInput: Consent price for a change of ownership is too low, or not provided. For .fr, it should be $12.00 or higher, and provided in US dollars.
│ 
│   with aws_route53domains_registered_domain.this,
│   on main.tf line 1, in resource "aws_route53domains_registered_domain" "this":
│    1: resource "aws_route53domains_registered_domain" "this" {

Terraform Configuration Files

resource "aws_route53domains_registered_domain" "this" {
  domain_name   = var.domain_name
  auto_renew    = true
  transfer_lock = false

  dynamic "name_server" {
    for_each = var.name_servers
    content {
      name     = name_server.value
    }
  }

  registrant_contact  {
    contact_type   = "PERSON"
    first_name     = var.registrant_contact.first_name
    last_name      = var.registrant_contact.last_name
    email          = var.registrant_contact.email
    phone_number   = var.registrant_contact.phone_number
    address_line_1 = var.full_address.address
    city           = var.full_address.city
    zip_code       = var.full_address.zip_code
    country_code   = var.full_address.country_code
  }
  registrant_privacy = true

  admin_contact {
    contact_type   = "PERSON"
    first_name     = var.admin_contact.first_name
    last_name      = var.admin_contact.last_name
    email          = var.admin_contact.email
    phone_number   = var.admin_contact.phone_number
    address_line_1 = var.full_address.address
    city           = var.full_address.city
    zip_code       = var.full_address.zip_code
    country_code   = var.full_address.country_code
  }
  admin_privacy = true

  tech_contact {
    contact_type   = "PERSON"
    first_name     = var.tech_contact.first_name
    last_name      = var.tech_contact.last_name
    email          = var.tech_contact.email
    phone_number   = var.tech_contact.phone_number
    address_line_1 = var.full_address.address
    city           = var.full_address.city
    zip_code       = var.full_address.zip_code
    country_code   = var.full_address.country_code
  }
  tech_privacy = true
}

Steps to Reproduce

  1. terraform init
  2. terraform plan
  3. terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

Customer's consent for the owner change request. Required if the domain is not free (consent price is more than $0.00).

The field isn't available in terraform resource aws_route53domains_registered_domain.

References

https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_UpdateDomainContact.html#Route53Domains-domains_UpdateDomainContact-request-Consent

Would you like to implement a fix?

No

github-actions[bot] commented 8 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue