mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-05 08:09:13 +00:00
Not only console solutions, but also Terraform and Pulumi. In addition, this change fixes issues #279 and #280
10 lines
285 B
Python
10 lines
285 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 |