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
- Host: GitHub
- URL: https://github.com/anmolnagpal/terraform-boilerplate
- Owner: anmolnagpal
- Created: 2018-07-07T03:18:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-22T20:39:27.000Z (over 6 years ago)
- Last Synced: 2025-01-12T07:12:18.331Z (5 months ago)
- Topics: aws, boilerplate, boilerplate-template, devops, template, terraform
- Language: HCL
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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)