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

https://github.com/edsoncelio/digger-demo

Demo with https://digger.dev/
https://github.com/edsoncelio/digger-demo

Last synced: 3 months ago
JSON representation

Demo with https://digger.dev/

Awesome Lists containing this project

README

          

# digger-demo
Demo for https://digger.dev/

## Requirements to run
* Change workflow permissions (at repo settings -> actions) to "Read and Write Permissions"
* Add the following variables to the action secrets:
* AWS_ACCESS_KEY_ID: aws access key
* AWS_SECRET_ACCESS_KEY: aws secret key
* INFRACOST_API_KEY: infracost api key

## How it works

This repo contains the following structure:
```
.
├── README.md
├── digger.yml
└── projects
├── prod
│   ├── backend.tf
│   └── main.tf
└── staging
├── backend.tf
└── main.tf
```

When,
* `projects`: dir with environments (`staging`, `prod`)
* `digger.yml`: config file for digger

## digger.yml configs
For this demo, there's a customized workflow called `staging_workflow` that will run for each PR in `projects/sandbox`:
* init
* validate
* fmt
* tfsec checks
* infracost checks (and post a comment and edit for each change)

## Examples

* To plan the project `projects/sandbox` in a PR:
`digger plan -p staging`

* To apply:
`digger apply -p staging`

### infracost comment
image

### tfsec report
image