epomatti / aws-vpc-peering

AWS VPC cross-region peering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

AWS VPC cross-region peering

License:MIT License


Languages

Language:HCL 100.0%