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

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

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
```