This is Terraform Example
- Setting AWS Access Key & Secret Key
export AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxx
export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxx
or
aws configure
cd ~
mkdir terraform
cd terraform
wget https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip
unzip terraform_0.11.11_linux_amd64.zip
cp -pr terraform /usr/local/bin/
cd ~
- clone terrafrom-sample
cd ~
git clone https://github.com/daisukeshimizu/terraform-sample.git
cd terraform-sample/development
- execution
terraform init -var-file=config.tfvars
terraform plan -var-file=config.tfvars
terraform apply -var-file=config.tfvars
- Delete
terraform destroy