Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
eip.tf
gateway.tf
iam.tf
instances.tf
provider.tf
route53.tf
routing.tf
securitygroups.tf
subnets.tf
variables.tf
vpc.tf

README.md

dev aws-vpc deployment

This Terraform project deploys a dev VPC AWS environment. These particular variabless deploy to us-east-1 (N. Virginia). Total resources deployed:

  • VPC
  • multiple subnets (general private/public subnets, etcd subnets, kubernetes subnets, ELB subnets, and DB subnets).
  • managed NAT gateway (for outbound traffic).
  • OpenVPN instance (and security groups).
  • A private Route53 zone.

quick start

  • Export your AWS keys (note - if you have your credentials saved at ~/.aws/config, you can just source the source script, source ../source_credentials.sh).
export AWS_ACCESS_KEY_ID=YOURACCESSKEY
export AWS_SECRET_ACCESS_KEY=YOURSECRETKEY
  • Edit the variables.tf accordingly. Some important ones:

    • env - the environment, used for tagging/labeling instances.
    • cidr - the first two octets of the AWS VPC cidr.
    • keypair - this should be the public SSH key that manages the instances. Needs to exist in AWS.
  • Run Terraform:

terraform plan
terraform apply
You can’t perform that action at this time.