Resource: aws_account_region

Enable (Opt-In) or Disable (Opt-Out) a particular Region for an AWS account.

Example Usage

resource "aws_account_region" "example" {
  region_name = "ap-southeast-3"
  enabled     = true
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import the account region using region_name or a comma separated account_id and region_name. For example:

import {
  to = aws_account_region.example
  id = "ap-southeast-3"
}

Using terraform import. For example:

% terraform import aws_account_region.example ap-southeast-3