Skip to main content
Providers

InternetGateway

A resource of the AWS provider, version 0.3.0, in its Networking group. Import it with:

import InternetGateway from "aws/networking"

Example

resource InternetGateway example {
    vpcId = "example-value"
    tags  = "..."
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
vpcIdstring—NoThe VPC ID to attach the internet gateway to
tagsobject—NoTags to apply to the internet gateway

Set by AWS after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.

NameTypeImportableDescription
internetGatewayIdstringNoThe internet gateway ID assigned by AWS
ownerIdstringNoThe AWS account ID that owns the internet gateway
attachmentStatestringNoAttachment state (available, attaching, detaching)

On this page