aws::route-table

Creates a VPC route table.

Example

aws::route-table route-table-example
    vpc: $(aws::vpc vpc-example)

    route
        destination-cidr-block: 0.0.0.0/0
        gateway: $(aws::internet-gateway ig-example)
    end

    tags: {
        Name: route-table-example
    }
end

Attributes

Attribute Description
vpc The VPC to create a Route Table for. (Required)
subnets set Subnets to associate with this Route Table.
route set subresource

The routes for the Route Table.

destination-cidr-block
An IPv4 destination CIDR block of the Route.
destination-ipv6-cidr-block
An IPv6 destination CIDR block of the Route.
egress-gateway
The Egress Only Internet Gateway to be associated to the Route. Only valid with IPv6 destination CIDR.
gateway
The Internet Gateway to be associated to the Route. Only valid with IPv4 destination CIDR.
instance
The NAT instance running in your VPC to be associated to the Route.
nat-gateway
The NAT Gateway to be associated to the Route. Only valid with IPv4 destination CIDR.
network-interface
The Network Interface to be associated to the Route.
transit-gateway
The transit gateway to associate to the Route.
vpc-peering-connection
The VPC Peering Connection to be associated to the Route.

Outputs

Attribute Description
id The ID of the Route Table.
owner-id The owner ID of the Route Table.