Skip to content

midair8/tf_aws_single_tier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf_aws_single_tier

a terraform module to provide a simple single-tier architecure on aws.

Requirement

  • Terraform >= 0.8.4

Usage

module "single_tier" {
  source = "git@github.com:accaman/tf_aws_single_tier"

  prefix       = "env-project"
  region       = "us-west2"
  vpc          = "10.0.0.0/16"
  az_count     = 2
  azs          = ["us-west-2a", "us-west-2b"]
  subnets      = ["10.0.64.0/26", "10.0.64.64/26"]
  public_key   = "/path/to/ec2.pub"
  key_name     = "ec2_user"
  bastion_amis = {
    us-west-2        = "ami-81f62ce1"
    ap-northeast-1   = "ami-i14r1u2i"
  }
  bastion_instance_type = "t2.micro"
  bastion_sg_whitelist  = ["203.0.113.0/24"]
}

Install

sudo sh -c "curl -sSL https://releases.hashicorp.com/terraform/0.8.4/terraform_0.8.4_darwin_amd64.zip | bsdtar -xf - -C /usr/local/bin"
sudo chmod +x /usr/local/bin/terraform
cd /path/to/repo
terraform get

Contribution

  1. Fork it (https://github.com/accaman/tf_aws_single_tier/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

accaman

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages