Resource: aws_ec2_availability_zone_group

Manages an EC2 Availability Zone Group, such as updating its opt-in status.

Example Usage

resource "aws_ec2_availability_zone_group" "example" {
  group_name    = "us-west-2-lax-1"
  opt_in_status = "opted-in"
}

Argument Reference

The following arguments are required:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import EC2 Availability Zone Groups using the group name. For example:

import {
  to = aws_ec2_availability_zone_group.example
  id = "us-west-2-lax-1"
}

Using terraform import, import EC2 Availability Zone Groups using the group name. For example:

% terraform import aws_ec2_availability_zone_group.example us-west-2-lax-1