Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add site-to-site-vpn Terraform/OpenTofu component #1106

Merged
merged 11 commits into from
Sep 3, 2024
Merged

Conversation

aknysh
Copy link
Member

@aknysh aknysh commented Aug 30, 2024

what

  • Add site-to-site-vpn Terraform/OpenTofu component

why

  • The component provisions a Site-To-Site VPN with a target AWS VPC on one side of the tunnel. The other (customer) side can be any VPN gateway endpoint, e.g. a hardware device, other cloud VPN, etc.

    AWS Site-to-Site VPN is a fully-managed service that creates a secure connection between your data center or branch
    office and your AWS resources using IP Security (IPSec) tunnels. When using Site-to-Site VPN, you can connect to both
    your Amazon Virtual Private Clouds (VPC) and AWS Transit Gateway, and two tunnels per connection are used for
    increased redundancy.

    The component provisions the following resources:

    • AWS Virtual Private Gateway (a representation of the AWS side of the tunnel)

    • AWS Customer Gateway (a representation of the other (remote) side of the tunnel). It requires:

      • The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN)
      • /32 IP of the VPN endpoint
    • AWS Site-To-Site VPN connection. It creates two VPN tunnels for redundancy and requires:

      • The IP CIDR ranges on each side of the tunnel
      • Pre-shared Keys for each tunnel (can be auto-generated if not provided and saved into SSM Parameter Store)
      • (Optional) IP CIDR ranges to be used inside each VPN tunnel
    • Route table entries to direct the appropriate traffic from the local VPC to the other side of the tunnel

references

@aknysh aknysh self-assigned this Aug 30, 2024
@aknysh aknysh requested review from a team as code owners August 30, 2024 22:15
@aknysh aknysh requested a review from osterman August 30, 2024 22:15
@aknysh aknysh merged commit 4cc206e into main Sep 3, 2024
4 checks passed
@aknysh aknysh deleted the add-site-to-site-vpn branch September 3, 2024 15:02
goruha pushed a commit to cloudposse-terraform-components/aws-access-analyzer that referenced this pull request Nov 27, 2024
goruha pushed a commit to cloudposse-terraform-components/aws-config that referenced this pull request Nov 27, 2024
goruha pushed a commit to cloudposse-terraform-components/aws-team-roles that referenced this pull request Nov 27, 2024
goruha pushed a commit to cloudposse-terraform-components/aws-site-to-site-vpn that referenced this pull request Nov 27, 2024
goruha pushed a commit to cloudposse-terraform-components/aws-spacelift-spaces that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants