Resource: aws_account_primary_contact

Manages the specified primary contact information associated with an AWS Account.

Example Usage

resource "aws_account_primary_contact" "test" {
  address_line_1     = "123 Any Street"
  city               = "Seattle"
  company_name       = "Example Corp, Inc."
  country_code       = "US"
  district_or_county = "King"
  full_name          = "My Name"
  phone_number       = "+64211111111"
  postal_code        = "98101"
  state_or_region    = "WA"
  website_url        = "https://www.examplecorp.com"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports no additional attributes.

Import

In Terraform v1.5.0 and later, use an import block to import the Primary Contact using the account_id. For example:

import {
  to = aws_account_primary_contact.test
  id = "1234567890"
}

Using terraform import, import the Primary Contact using the account_id. For example:

% terraform import aws_account_primary_contact.test 1234567890