-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: adjusting the variable name for consistency purposes * chore: adding the ability to pass the secret name
- Loading branch information
Showing
4 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
|
||
locals { | ||
## Indicates if the slack notification is enabled | ||
enable_slack = var.notification.slack != null | ||
enable_slack = var.notifications.slack != null | ||
|
||
## If enabled, this will be the configuration for the slack notification | ||
slack_configuration = local.enable_slack ? { | ||
channel = var.notification.slack.channel | ||
lambda_name = var.notification.slack.lambda_name | ||
slack_username = ":aws: Budgets" | ||
webhook_url = var.notification.slack.webhook_url | ||
channel = var.notifications.slack.channel | ||
lambda_name = var.notifications.slack.lambda_name | ||
secret_name = var.notifications.slack.secret_name | ||
username = var.notifications.slack.username | ||
webhook_url = var.notifications.slack.webhook_url | ||
} : null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters