Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/colinbut/terraform-aws-example
Terraform example
https://github.com/colinbut/terraform-aws-example
terraform terraform-configurations
Last synced: 13 days ago
JSON representation
Terraform example
- Host: GitHub
- URL: https://github.com/colinbut/terraform-aws-example
- Owner: colinbut
- Created: 2018-08-25T15:30:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-25T21:56:47.000Z (over 6 years ago)
- Last Synced: 2024-12-06T19:50:32.498Z (27 days ago)
- Topics: terraform, terraform-configurations
- Language: HCL
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform AWS Example
Infrastructure as Code.
1. Initialize Terraform's "backend"
2. Downloads the required Terraform plugin for working with the 'Infrastructure Provider'```bash
terraform init
```Code up the infrastructure in a "Terraform Configuration" file (format in yml - YAML).
Then apply the changes:
```bash
terraform apply -var 'access_key=[YOUR AWS ACCESS KEY]' -var 'secret_key=[YOUR AWS SECRET KEY]'
```Run an "Execution Plan" to check the changes to be applied before actually running the apply.
Allows you to obtain useful information about the changes you are about to make.```bash
terraform plan -var 'access_key=[YOUR AWS ACCESS KEY]' -var 'secret_key=[YOUR AWS SECRET KEY]'
```Other useful commands:
```bash
terraform graph
``````bash
terraform show
```