https://pulumi.com logo
#getting-started
Title
# getting-started
m

magnificent-soccer-44287

10/24/2023, 7:59 PM
Hi folks - is there a way to set the default VPC for everything in a specific TS infra config file? as well as define vpc-to-vpc peering connections? we're in AWS and I'm setting up one AWS account per environment and would like to set up one VPC per tenant.
s

stocky-restaurant-98004

10/25/2023, 5:17 PM
You can define VPC peering (but you may want to consider Transit Gateway instead as I find it more flexible): https://www.pulumi.com/registry/packages/aws/api-docs/ec2/vpcpeeringconnection/#example-usage
Example using Transit Gateway (in Python - I don't have this available in TypeScript unfortunately, but hopefully it's not too tough to translate): https://github.com/pulumi/examples/tree/master/aws-py-hub-and-spoke-network
m

magnificent-soccer-44287

10/26/2023, 3:48 PM
tyvm!