Coder Social home page Coder Social logo

learning-env's Introduction

vpn-bastion

Deployment of Servers for training purpose

VPC + EC2 instance Provisioning

This project creates (and delete) Linux Server in its own isolated VPC in AWS. The output provides DNS Names and IP addresses.

Requirements

  • An SSH Public Key

Define all the Values in terraform.tfvars as shown in terraform.tfvars.example

If you don't want to use DNS Names with Route 53 but only IP, delete the following file:

  • vpn-server-dnsname.tf

Otherwise you will need:

  • A zone ID for your DNS Zone in Route 53

Optional to store terraform states in S3:

  • backend.safe.tf copied from backend.safe.tf.example

Dependencies

ipv6=false doesn't work yet in current version Bug Issue 688:

Usage Example

  • Create terraform.tfvars from terraform.tfvars.example
  • (optional) Create backend.safe.tf from backend.safe.tf.example
  • terraform init
  • (optional) terraform workspace new <workspace_name>
  • terraform apply
  • terraform destroy
  • (optional) terraform workspace delete <workspace_name>

You can use inline vars to overide terraform.tfvars and deploy in a different region

  • terraform workspace new paris
  • terraform apply -var vpcname='VPN-Paris' -var region='eu-west-3' -var hostname='vpn-paris.domain.com'
  • terraform destroy -var vpcname='VPN-Paris' -var region='eu-west-3' -var hostname='vpn-paris.domain.com'
  • terraform workspace delete paris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.