https://github.com/kimaruthagna/teraflakes
Using Terraform to spin up resources in snowflake and wrapping everything in Docker.
https://github.com/kimaruthagna/teraflakes
Last synced: 3 months ago
JSON representation
Using Terraform to spin up resources in snowflake and wrapping everything in Docker.
- Host: GitHub
- URL: https://github.com/kimaruthagna/teraflakes
- Owner: KimaruThagna
- Created: 2021-08-05T08:19:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-10T06:34:27.000Z (about 4 years ago)
- Last Synced: 2025-03-18T08:34:39.071Z (7 months ago)
- Language: HCL
- Size: 7.31 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TeraFlakes
Using Terraform to spin up resources in snowflake and wrapping everything in Docker.# Using Docker Environment
# 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
```# Terraform Modules
I have implemented two modules `webserver/` and `snowflake_spinup/` that handles an AWS webserver infrastructure and a SNOWFLAKE db/warehouse setup for different usecases.# Policy Governance using Sentinel
Sentinel provides a way to encode policies that are imposed on the terraform code written.
To run the policies against your terraform code, run the `terraform plan` command with the `-out=file` flag so that you can access the file.