Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 80cd3c0 Mar 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Add .gitignore Feb 26, 2019
README.md
main-sample.tf
sample.tfvars Rename terraform-sample-variables.tf to variables-sample.tf and Renam… Mar 20, 2019
variables-sample.tf

README.md

Description

This is Terraform Example

Requirement

Usage

  • 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
  • execution
terraform init -var-file=sample.tfvars

terraform plan -var-file=sample.tfvars

terraform apply -var-file=sample.tfvars
  • Delete
terraform destroy

Licence

Author

You can’t perform that action at this time.