Hi folks - is there a way to set the default VPC f...
# getting-started
m
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
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
tyvm!