Resource: aws_ec2_carrier_gateway

Manages an EC2 Carrier Gateway. See the AWS documentation for more information.

Example Usage

resource "aws_ec2_carrier_gateway" "example" {
  vpc_id = aws_vpc.example.id

  tags = {
    Name = "example-carrier-gateway"
  }
}

Argument Reference

This resource supports the following arguments:

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 aws_ec2_carrier_gateway using the carrier gateway's ID. For example:

import {
  to = aws_ec2_carrier_gateway.example
  id = "cgw-12345"
}

Using terraform import, import aws_ec2_carrier_gateway using the carrier gateway's ID. For example:

% terraform import aws_ec2_carrier_gateway.example cgw-12345