Git Product home page Git Product logo

devkit-vpc's Introduction

Development-IaC

Summary

This terraform play is designed to create a working development VPC for the user. It will create the following resources:

  • Three Public subnets

  • Three Private subnets "no nat to simulate airgapped"

  • s3 vpc_endpoint

  • ec2 vpc_endpoint

  • elb vpc_endpoint

  • Route 53 private zone

  • Security Groups

  • Bastion ec2 Instance

  • Registry ec2 Instance

Requirement

  • Setup your aws credentials

Setup the variable file

Table 1. Table Mandatory Variables
Variable Default Comments (type)

aws_ssh_key

abc

AWS user key name

ssh_public_key

string

Public ssh key. Can be drived from cat /home/ec2-user/authorized_keys

rhcos_ami

ami-XXXXXXXX

RH CoreOS AMI ID

vpc_id

vpc-name

The vpc name

cluster_name

cluster

The cluster name

cluster_domain

example.io

The cluster domain

cidr_blocks

10.0.0.0/16

Any private cidr scheme

aws_region

us-gov-west-1

Aws region

default_tag

Leave blank it will us the cluster_name to set tags

aws_azs

"a", "b", "c"

This will align with the aws availability zones

aws_availability_zones

us-gov-west-1a

This is the AZ for the public subnet

vpc_private_subnet_cidrs

"10.0.1.0/24","10.0.2.0/24","10.0.3.0/24

Private CIDR block

vpc_public_subnet_cidr

10.0.7.0/26", "10.0.8.0/26", "10.0.9.0/26"

Public CIDR block

Prereqs

The user will need to provide the following:

  • Aws ssh key for the bastion

  • AMI Ids for Rhel 8 and Rhcos images

Step 1

Download the git to your local machine:

git clone https://github.com/CodeSparta/devkit-vpc.git
cd devkit-vpc
- Setup your variables.tf
vi variables.tf

- exec into the container and deploy
bash tools/dev.sh
./devkit-build-vpc.sh -vv -e aws_cloud_region=us-gov-west-1 -e aws_access_key=xxxxxxxxxxxxx -e aws_secret_key=XXXXXXXXXXXXXXXXX

Step 2

To destroy the IaC run:

cd into git repo
bash tools/dev.sh
./breakdown.yml -vv

All resources not created from the IaC must be deleted prior to destroying the vpc.

devkit-vpc's People

Contributors

day0hero avatar dlystra avatar ducksauser avatar hultzj avatar joecharles33 avatar this-funk avatar usrbinkat avatar

Watchers

 avatar

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.