Skip to content

Commit

Permalink
chore: update links
Browse files Browse the repository at this point in the history
  • Loading branch information
alikhajeh1 committed Oct 22, 2024
1 parent edb9e78 commit 0d4f525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/infracost_cloud/guardrails.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Next you should select the thresholds that should trigger this guardrail, the th

### 4. Notifications to send

You can select the users who should be emailed when a guardrail is triggered. You can also create a [Slack channel webhook](https://slack.com/intl/en-tr/help/articles/115005265063-Incoming-webhooks-for-Slack) and use that for notifications.
You can select the users who should be emailed when a guardrail is triggered. You can also create a [Slack channel webhook](https://api.slack.com/messaging/webhooks) and use that for notifications.

We recommend enabling the pull request option, so engineers are shown the guardrail information in the Infracost pull request comment too. Regardless of which notification option you select, you can set a custom message to be included in them to give additional context or instructions. For example, you can describe why this guardrail is important or what will happen next after someone has reviewed the notification.

Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';

Infracost Cloud [Guardrails](/docs/infracost_cloud/guardrails/) have native support for Slack notifications that trigger when your defined thresholds are exceeded. If you are not using that feature, you can post cost estimates to Slack by following these steps in your CI/CD system:

1. Create a [Slack Webhook](https://slack.com/intl/en-tr/help/articles/115005265063-Incoming-webhooks-for-Slack) in your workspace.
1. Create a [Slack Webhook](https://api.slack.com/messaging/webhooks) in your workspace.
2. Use the `infracost output --format slack-message` [command](/docs/features/cli_commands/) to produce a Slack-flavored Markdown message. Slack message blocks have a 3000 char limit so the Infracost CLI automatically truncates the middle of the `slack-message` output format if required.
3. Post the message to Slack using `curl` from your CI/CD system. See [this example](https://gitlab.com/infracost/infracost-gitlab-ci/-/tree/master/examples/slack) for how to do this in GitLab, the same bash commands can be used in other systems.

Expand Down

0 comments on commit 0d4f525

Please sign in to comment.