https://github.com/kimaruthagna/terradocker
Using docker to build a terraform project that spins up and manages and EC2 instance on AWS
https://github.com/kimaruthagna/terradocker
Last synced: 4 months ago
JSON representation
Using docker to build a terraform project that spins up and manages and EC2 instance on AWS
- Host: GitHub
- URL: https://github.com/kimaruthagna/terradocker
- Owner: KimaruThagna
- Created: 2021-05-21T07:49:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-21T08:41:19.000Z (over 4 years ago)
- Last Synced: 2025-06-25T06:04:36.771Z (4 months ago)
- Language: HCL
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TerraDocker
Using docker to build a terraform project that spins up and manages and EC2 instance on AWS# Commands
To run and initialize the project,
```
docker-compose run --rm tf init
```to format the `main.tf` file
```
docker-compose run --rm tf fmt
```To validate our `main.tf`
```
docker-compose run --rm tf validate
```To plan(explain the expected changes before performing action)
```
docker-compose run --rm tf plan
```To run and apply actual plans
```
docker-compose run --rm tf apply
```
To destroy resources made by the TF
```
docker-compose run --rm tf destroy
```