An open API service indexing awesome lists of open source software.

https://github.com/anmolnagpal/terraform-boilerplate

Terraform Boilerplate
https://github.com/anmolnagpal/terraform-boilerplate

aws boilerplate boilerplate-template devops template terraform

Last synced: 3 months ago
JSON representation

Terraform Boilerplate

Awesome Lists containing this project

README

        

> Terraform for beginners

### Install terraform
For MAC OS
```sh
brew install terraform
```
### Export AWS secret keys, else define them in `aws-provider.tf`
```sh
export AWS_ACCESS_KEY_ID=AKIA********
export AWS_SECRET_ACCESS_KEY=8s8v1lT*******************
export AWS_DEFAULT_REGION=us-east-1
```

### Commands
```
$ terraform plan # plan
$ terraform apply # shortcut for plan & apply - avoid this in production

$ terraform plan -out changes.terraform # terraform plan and write the plan to out file
$ terraform apply changes.terraform # apply terraform plan using out file

$ terraform show # show current state
$ cat terraform.tfstate # show state in JSON format
```

## Contribution

* Report issues
* Open pull request to **DEV BRANCH** with improvements
* Spread the word
* Reach out to me directly at [email protected] or on twitter [@anmol_nagpal](https://twitter.com/anmol_nagpal)