aws.ec2-internet-gateway resource¶
Description¶
InternetGateway is an EC2 internet gateway: the device that gives a VPC a path to the public internet. The gateway itself has no settings beyond its tags; its one reconciled property is the VPC it is attached to. The attachment has no create-time setting, so vpc-id is an optional field applied after the gateway exists: an unset vpc-id leaves the gateway unattached, and a set value is reconciled by attaching the gateway to that VPC. A change to vpc-id detaches the old VPC and attaches the new one in place, so nothing on the gateway forces a replacement.
Source: internal/service/ec2/internet_gateway_rsrc.go:34
Example usage:
imports: {
aws: 'github.com/cloudboss/unobin-library-aws'
}
resources: {
example: aws.ec2-internet-gateway {
# Set input fields here.
}
}
Inputs¶
vpc-id
optional(string)
tags
map(string)
Input Constraints¶
This kind declares no extra input constraints.
Outputs¶
internet-gateway-id
string
owner-id
string
vpc-id
string