@sophosoft/pulumi-aws-routetable
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Route Table

Pulumi Component for AWS Route Tables

description

This component aggregates a Route Table and its associations.

install

npm i @sophosoft/pulumi-aws-routetable

usage

import { VpcRouteTable } from "@sophosoft/pulumi-aws-routetable"

export const routes = new VpcRouteTable('public', {
  tableArgs: {
    vpcId: vpc.id,
    routes: [{
      cidrBlock: '0.0.0.0/0',
      gatewayId: igw.id
    }],
    tags: {
      Name: `${vpc.tags['Name']}-public`
    }
  },
  associations: publicSubnets.map((s: Subnet): VpcRouteTableAssociationArgs => {
    return { subnetId: s.id }
  })
})

constructor

new VpcRouteTable(name: string, args: VpcRouteTableArgs, options?: pulumi.ComponentResourceOptions)

property id

public readonly id: pulumi.Output<string>

property table

public readonly table: aws.ec2.RouteTable

property associations

public readonly associations: aws.ec2.RouteTableAssociation[]

Package Sidebar

Install

npm i @sophosoft/pulumi-aws-routetable

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.48 kB

Total Files

4

Last publish

Collaborators

  • texdc