Resource: aws_account_alternate_contact

Manages the specified alternate contact attached to an AWS Account.

Example Usage

resource "aws_account_alternate_contact" "operations" {

  alternate_contact_type = "OPERATIONS"

  name          = "Example"
  title         = "Example"
  email_address = "test@example.com"
  phone_number  = "+1234567890"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports no additional attributes.

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import the Alternate Contact for the current or another account using the alternate_contact_type. For example:

Import the Alternate Contact for the current account:

import {
  to = aws_account_alternate_contact.operations
  id = "OPERATIONS"
}

Import the Alternate Contact for another account using the account_id and alternate_contact_type separated by a forward slash (/):

import {
  to = aws_account_alternate_contact.operations
  id = "1234567890/OPERATIONS"
}

Using terraform import to import the Alternate Contact for the current or another account using the alternate_contact_type. For example:

Import the Alternate Contact for the current account:

% terraform import aws_account_alternate_contact.operations OPERATIONS

Import the Alternate Contact for another account using the account_id and alternate_contact_type separated by a forward slash (/):

% terraform import aws_account_alternate_contact.operations 1234567890/OPERATIONS