https://github.com/anmolnagpal/terraform101
Learn Terrafom
https://github.com/anmolnagpal/terraform101
Last synced: 3 months ago
JSON representation
Learn Terrafom
- Host: GitHub
- URL: https://github.com/anmolnagpal/terraform101
- Owner: anmolnagpal
- Created: 2018-07-07T02:17:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-07T02:40:23.000Z (almost 7 years ago)
- Last Synced: 2025-01-12T07:12:17.983Z (5 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- 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
```
### Initialize terraform -
```sh
terraform init
```
## Change variables "orgname" & "environ" in `variables.tf` as per your requirement.### Plan (shows execution plan) -
```sh
terraform plan -out terraform-plan-key
```
### Apply (Creates the defined infrastructe) -
```sh
terraform apply terraform-plan-key
```
### Destroy the infra which we build just now -
```sh
terraform destroy
```## 👬 Contribution
- Open pull request with improvements
- Discuss ideas in issues- Reach out with any feedback [](https://twitter.com/anmol_nagpal)