No description, website, or topics provided.
HCL
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
aws.tf
ec2.tf
eip.tf
elb.tf
gateway.tf
keypair.tf
nat.tf
routetable.tf
securitygroup.tf
subnet.tf
variables.tf
vpc.tf

README.md

Terraform AWS Sample

Setup to AWS by terraform.

Description

Setup to;

  • Key Pairs
  • VPC
  • Subnets
  • Internet Gateway
  • Route Tables
  • Security Groups
  • EC2
  • ELB
  • EIP
  • NAT Gateway

Setup

Write to variables.tf file your aws credentials and your SSH public key.

variable "aws_access_key" {
    description = "AWS access key"
    default = "xxxxxxxxxxxxxxxxxxxx"
}

variable "aws_secret_key" {
    description = "AWS secret key"
    default = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

variable "aws_region" {
    description = "AWS region"
    default = "ap-northeast-1"
}

variable "public_key" {
    description = "SSH key"
    default = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

Run

Check

$ terraform plan

Execute

$ terraform apply