Skip to content

Commit

Permalink
Update using-infracost.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIJ authored Dec 1, 2023
1 parent 6fa780c commit 4ba3ead
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/configuration/using-infracost.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ description: "This feature is in early development. If you find something that c

Infracost binary needs to be installed into your CI pipeline (see [Infracost docs](https://www.infracost.io/docs/integrations/generic%5Fcicd/))

## Set up Infracost

Use the official setup-infracost action in your workflow file ([README](https://github.com/infracost/actions/))

```
- name: Setup Infracost
uses: infracost/actions/setup@v2
# See https://github.com/infracost/actions/tree/master/setup for other inputs
# If you can't use this action, see Docker images in https://infracost.io/cicd
with:
api-key: ${{ secrets.INFRACOST_API_KEY }}
```

## Digger.yml configuration

```
Expand All @@ -30,4 +43,4 @@ workflows:

After the pipeline run finishes, you should see Infracost breakdown output in your CI job logs:

![](/images/configuration/infracost-example.png)
![](/images/configuration/infracost-example.png)

0 comments on commit 4ba3ead

Please sign in to comment.