devops-exercises/topics/aws/exercises/new_vpc/pulumi/__main__.py
abregman 9d018343c0 Update CKA
Added additional questions to CKA and fixed some styling issues with
pulumi Python code.
2022-10-15 22:34:50 +03:00

11 lines
286 B
Python

import pulumi
import pulumi_awsx as awsx
vpc = awsx.ec2.Vpc("exercise-vpc", cidr_block="10.0.0.0/16")
pulumi.export("vpc_id", vpc.vpc_id)
pulumi.export("publicSubnetIds", vpc.public_subnet_ids)
pulumi.export("privateSubnetIds", vpc.private_subnet_ids)
# Run 'pulumi up' to create it