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

0.0.5 • Public • Published

Pulumi AWS VPC

Easily deploy an AWS VPC with multiple public, private, and/or isolated subnets. Also provisions networking resources like NAT Gateways, Internet Gateways, Route Tables, Security Group, and VPC Flow Logs. This component is based on the best practices recommended by AWS in the VPC Architecture

Examples

See the /examples directory for more

Go:

publicSubnet1Cidr := "10.0.128.0/20"
privateSubnet1ACidr := "10.0.32.0/19"

publicSubnet2Cidr := "10.0.64.0/19"

// Create an AWS resource (S3 Bucket)
_, err := quickstartVpc.NewVpc(ctx, "simple-vpc", &quickstartVpc.VpcArgs{
  CidrBlock: "10.0.0.0/16",
  AvailabilityZoneConfig: []quickstartVpc.AvailabilityZoneArgs{
    quickstartVpc.AvailabilityZoneArgs{
      AvailabilityZone:   "us-east-1a",
      PublicSubnetCidr:   &publicSubnet1Cidr,
      PrivateSubnetACidr: &privateSubnet1ACidr,
    },
    quickstartVpc.AvailabilityZoneArgs{
      AvailabilityZone: "us-east-1b",
      PublicSubnetCidr: &publicSubnet2Cidr,
    },
  },
})

Typescript:

const myVpc = new quickstartVpc.Vpc("simple-vpc", {
    cidrBlock: "10.0.0.0/16",
    availabilityZoneConfig: [{
        availabilityZone: "us-east-1a",
        publicSubnetCidr: "10.0.128.0/20",
        privateSubnetACidr: "10.0.32.0/19",
    }, {
        availabilityZone: "us-east-1b",
        privateSubnetACidr: "10.0.64.0/19",
    }]
})

Readme

Keywords

none

Package Sidebar

Install

npm i @pulumi/aws-quickstart-vpc

Weekly Downloads

157

Version

0.0.5

License

none

Unpacked Size

36.9 kB

Total Files

24

Last publish

Collaborators

  • joeduffy
  • pulumi-bot