https://github.com/epomatti/aws-vpc-peering
AWS VPC cross-region peering
https://github.com/epomatti/aws-vpc-peering
aws aws-security aws-vpc cross-region ec2 rds terraform vpc vpc-peering
Last synced: 3 months ago
JSON representation
AWS VPC cross-region peering
- Host: GitHub
- URL: https://github.com/epomatti/aws-vpc-peering
- Owner: epomatti
- License: mit
- Created: 2023-10-05T14:39:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-15T03:07:29.000Z (over 1 year ago)
- Last Synced: 2025-01-17T18:36:22.852Z (5 months ago)
- Topics: aws, aws-security, aws-vpc, cross-region, ec2, rds, terraform, vpc, vpc-peering
- Language: HCL
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS VPC Peering
AWS VPC cross-region peering.
Generate the temporary keys for SSH (if needed):
```sh
mkdir keys
ssh-keygen -f keys/temp_key
```To convert from OPENSSH to RSA:
```sh
ssh-keygen -p -m PEM -f keys/temp_key
```Copy the `.auto.tfvars` sample file:
```sh
cp samples/sample.tfvars .auto.tfvars
```Create the infrastructure:
```sh
terraform init
terraform apply -auto-approve
```Start a session using the bastion host and test the connection with peered VPC.
---
### Clean-up
```sh
terraform destroy -auto-approve
```