项目作者: reysmerwvr

项目描述 :
Learn DevOps: Infrastructure Automation With Terraform.
高级语言: HCL
项目地址: git://github.com/reysmerwvr/terraform-demos.git
创建时间: 2019-09-27T19:29:56Z
项目社区:https://github.com/reysmerwvr/terraform-demos

开源协议:MIT License

下载


terraform-demos

Learn DevOps: Infrastructure Automation With Terraform.

Requirements

  • Terraform >= v0.12.9
  • aws-cli >= 1.16.245

Version

1.0.0

Installation

Download zip file and extract it latest pre-built release. Or clone the repository and cd into it.

This project uses a number of open source projects to work properly:

  • Terraform - Use Infrastructure as Code to provision and manage any cloud, infrastructure, or service

Setup

Install terraform and aws-cli for your OS. Terraform aws-cli

Configuration

  1. $ aws configure
  2. AWS Access Key ID [None]: YOURAWSACCESSKEY
  3. AWS Secret Access Key [None]: YOURAWSSECRETKEY
  4. Default region name [None]: us-west-2
  5. Default output format [None]: json
  1. $ cd terraform-demos
  2. You should select the demo that you want to test for instance:
  3. cd demo-1
  4. touch terraform.tfvars
  5. Add your AWS Credentials in this file (terraform.tfvars)
  6. terraform init
  7. terraform plan
  8. terraform apply
  9. terraform destroy

[//]: # “These are reference links used in the body of this note and get stripped out when the markdown processor does
its job. There is no need to format nicely because it shouldn’t be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax