No project description provided
Project description
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",
}]
})
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pulumi_aws_quickstart_vpc-0.0.5.tar.gz
.
File metadata
- Download URL: pulumi_aws_quickstart_vpc-0.0.5.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42589153bc2be92d4a4a06460a33b76cea52dd515288bd80bc8a3c88c83c2022 |
|
MD5 | 26321f55154de1b90b2d9d447f671226 |
|
BLAKE2b-256 | 04b31b3cfc40add3b4399447732287e2f4c1f364ac0b22bb23b2a07327948fa8 |