Skip to content

Resource: awsEc2AvailabilityZoneGroup

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

\~> NOTE: This is an advanced Terraform resource. Terraform will automatically assume management of the EC2 Availability Zone Group without import and perform no actions on removal from configuration.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.ec2AvailabilityZoneGroup.Ec2AvailabilityZoneGroup(this, "example", {
  groupName: "us-west-2-lax-1",
  optInStatus: "opted-in",
});

Argument Reference

The following arguments are required:

  • groupName - (Required) Name of the Availability Zone Group.
  • optInStatus - (Required) Indicates whether to enable or disable Availability Zone Group. Valid values: optedIn or notOptedIn.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - Name of the Availability Zone Group.

Import

EC2 Availability Zone Groups can be imported using the group name, e.g.,

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