Skip to main content
Providers

RouteTable

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

import RouteTable from "aws/networking"

Example

resource RouteTable example {
    vpcId  = "example-value"
    routes = "..."
    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 where the route table will be created
routesany[]—NoRoutes in this route table
tagsobject—NoTags to apply to the route table

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
routeTableIdstringNoThe route table ID assigned by AWS
ownerIdstringNoThe AWS account ID that owns the route table
mainbooleanNoWhether this is the main route table for the VPC
associatedSubnetIdsany[]NoList of subnet IDs associated with this route table

On this page