Resource Type definition for AWS::EC2::VPCGatewayAttachment
Attach a internet gateway to a VPC.
resource "awscc_ec2_vpc_gateway_attachment" "igw" {
internet_gateway_id = awscc_ec2_internet_gateway.igw.id
vpc_id = awscc_ec2_vpc.vpc.id
}
resource "awscc_ec2_internet_gateway" "igw" {
tags = [{
key = "Managed By"
value = "AWSCC"
}]
}
resource "awscc_ec2_vpc" "vpc" {
cidr_block = "10.0.0.0/16"
tags = [{
key = "Managed By"
value = "AWSCC"
}]
}
Attach a virtual private gateway to a VPC.
resource "awscc_ec2_vpc_gateway_attachment" "vpn" {
vpn_gateway_id = awscc_ec2_vpn_gateway.vpn.id
vpc_id = awscc_ec2_vpc.vpc.id
}
resource "awscc_ec2_vpn_gateway" "vpn" {
type = "ipsec.1"
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]
}
resource "awscc_ec2_vpc" "vpc" {
cidr_block = "10.0.0.0/16"
tags = [{
key = "Managed By"
value = "AWSCC"
}]
}
vpc_id
(String) The ID of the VPC.internet_gateway_id
(String) The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.vpn_gateway_id
(String) The ID of the virtual private gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.attachment_type
(String) Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachmentid
(String) Uniquely identifies the resource.Import is supported using the following syntax:
$ terraform import awscc_ec2_vpc_gateway_attachment.example <resource ID>