awscc.ec2_vpc_gateway_attachment
CloudFormation Type: AWS::EC2::VPCGatewayAttachment
Resource Type definition for AWS::EC2::VPCGatewayAttachment
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
attachment_type | String | (read-only) | |
internet_gateway_id | String | No | The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both. |
vpc_id | String | Yes | The ID of the VPC. |
vpn_gateway_id | String | No | The ID of the virtual private gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both. |
Example
let vpc = awscc.ec2_vpc {
name = "example-vpc"
cidr_block = "10.0.0.0/16"
enable_dns_support = true
enable_dns_hostnames = true
}
let igw = awscc.ec2_internet_gateway {
name = "example-igw"
}
awscc.ec2_vpc_gateway_attachment {
name = "example-igw-attachment"
vpc_id = vpc.vpc_id
internet_gateway_id = igw.internet_gateway_id
}