-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from allcloud-jonathan/master
Username Prefix && housekeeping
- Loading branch information
Showing
7 changed files
with
58 additions
and
34 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
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
Binary file not shown.
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,3 +1,4 @@ | ||
output "lambda_function_arn" { | ||
value = "${aws_lambda_function.sns_to_slack.arn}" | ||
value = "${aws_lambda_function.sns_to_slack.arn}" | ||
description = "AWS Lambda notifier function ARN" | ||
} |
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,37 +1,51 @@ | ||
variable "slack_webhook_url" { | ||
type = "string" | ||
type = "string" | ||
description = "Slack incoming webhook URL without protocol name" | ||
} | ||
|
||
variable "slack_channel_map" { | ||
type = "map" | ||
type = "map" | ||
description = "Topic-to-channel mapping" | ||
} | ||
|
||
variable "lambda_function_name" { | ||
type = "string" | ||
default = "sns-to-slack" | ||
type = "string" | ||
default = "sns-to-slack" | ||
description = "AWS Lambda function name for the Slack notifier" | ||
} | ||
|
||
variable "default_username" { | ||
type = "string" | ||
default = "AWS Lambda" | ||
type = "string" | ||
default = "AWS Lambda" | ||
description = "Default username for notifications used if no matching one found" | ||
} | ||
|
||
variable "username_prefix" { | ||
type = "string" | ||
default = "" | ||
description = "if sepecified the usernames that are looked up will be prefixed by this. Useful in situations where multiple accounts report to a single slack channel." | ||
} | ||
|
||
variable "default_channel" { | ||
type = "string" | ||
default = "#webhook-tests" | ||
type = "string" | ||
default = "#webhook-tests" | ||
description = "Default channel used if no matching channel found" | ||
} | ||
|
||
variable "default_emoji" { | ||
type = "string" | ||
default = ":information_source:" | ||
type = "string" | ||
default = ":information_source:" | ||
description = "Default emoji used if no matching emoji found" | ||
} | ||
|
||
variable "lambda_iam_role_name" { | ||
type = "string" | ||
default = "lambda-sns-to-slack" | ||
type = "string" | ||
default = "lambda-sns-to-slack" | ||
description = "IAM role name for lambda functions" | ||
} | ||
|
||
variable "lambda_iam_policy_name" { | ||
type = "string" | ||
default = "lambda-sns-to-slack-policy" | ||
type = "string" | ||
default = "lambda-sns-to-slack-policy" | ||
description = "IAM policy name for lambda functions" | ||
} |
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