Skip to content

epomatti/aws-vpc-peering

Repository files navigation

AWS VPC Peering

AWS VPC cross-region peering.

Generate the temporary keys for SSH (if needed):

mkdir keys
ssh-keygen -f keys/temp_key

To convert from OPENSSH to RSA:

ssh-keygen -p -m PEM -f keys/temp_key

Copy the .auto.tfvars sample file:

cp samples/sample.tfvars .auto.tfvars

Create the infrastructure:

terraform init
terraform apply -auto-approve

Start a session using the bastion host and test the connection with peered VPC.


Clean-up

terraform destroy -auto-approve