A module to deliver messages from SNS to Sentry.
Example:
module "sns_sentry_delivery" {
source = "github.com:thoughtbot/aws-sns-sentry-delivery"
name = "sample-sentry-messages"
# Name of the AWS Secretmanager resource contaiing the sentry DSN credentials
sentry_secret_name = sample-sentry-secret
# Enter the source SNS topic
source_sns_topic_arn = "arn:aws:sns:us-east-1:123456789:source-sns-topic"
}
Name | Version |
---|---|
terraform | >= 0.14.8 |
archive | ~> 2.0 |
aws | ~> 4.0 |
random | ~> 3.0 |
Name | Version |
---|---|
archive | ~> 2.0 |
aws | ~> 4.0 |
random | ~> 3.0 |
Name | Type |
---|---|
aws_cloudwatch_log_group.lambda_logs | resource |
aws_iam_role.lambda_role | resource |
aws_iam_role_policy.logs_role_policy | resource |
aws_lambda_function.alertmanger_sentry_notification | resource |
aws_lambda_layer_version.sentry_sdk_layer | resource |
aws_lambda_permission.allow_sns | resource |
aws_sns_topic_subscription.lambda | resource |
random_id.unique_id | resource |
archive_file.function | data source |
aws_caller_identity.this | data source |
aws_iam_policy_document.assume_role_policy_doc | data source |
aws_iam_policy_document.lamada_role_policy | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | Unique name for the Sentry delivery resource. | string |
n/a | yes |
sentry_environment | Sentry environment to push warning logs. | string |
"production" |
no |
sentry_secret_name | Name of the secrets manager secret containing the sentry credentials. | string |
n/a | yes |
sentry_subject_prefix | Set a prefix to add to the subject before being published to Sentry. | string |
"" |
no |
sns_message_as_subject | Set the SNS message field as the subject for Sentry | bool |
false |
no |
source_sns_topic_arn | Source SNS topic for incoming messages. | string |
n/a | yes |