a terraform module to provide a simple single-tier architecure on aws.
- Terraform >= 0.8.4
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"]
}
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
- Fork it (https://github.com/accaman/tf_aws_single_tier/fork)
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request