Skip to content

Commit

Permalink
Merge pull request #227 from silinternational/feature/id-sync-sentry
Browse files Browse the repository at this point in the history
add SENTRY_DSN to ID Sync task definition
  • Loading branch information
briskt authored Oct 6, 2023
2 parents f11a9a5 + 20b94c9 commit d4b6ee0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/070-id-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ store.
- `create_dns_record` - Controls creation of a DNS CNAME record for the ECS service. Default: `true`
- `enable_new_user_notification` - Enable email notification to HR Contact upon creation of a new user, if set to 'true'. Default: `false`
- `enable_sync` - Set to false to disable the sync process.
- `sentry_dsn` - Sentry DSN for error logging and alerting. Obtain from Sentry dashboard: Settings - Projects - (project) - Client Keys

## Outputs

Expand Down
1 change: 1 addition & 0 deletions terraform/070-id-sync/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ locals {
sync_safety_cutoff = var.sync_safety_cutoff
allow_empty_email = var.allow_empty_email
enable_new_user_notification = var.enable_new_user_notification
sentry_dsn = var.sentry_dsn
})
}

Expand Down
4 changes: 4 additions & 0 deletions terraform/070-id-sync/task-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
"name": "ENABLE_NEW_USER_NOTIFICATION",
"value": "${enable_new_user_notification}"
},
{
"name": "SENTRY_DSN",
"value": "${sentry_dsn}"
},
${id_store_config}
],
"links": null,
Expand Down
6 changes: 6 additions & 0 deletions terraform/070-id-sync/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,9 @@ variable "create_dns_record" {
type = bool
default = true
}

variable "sentry_dsn" {
description = "Sentry DSN for error logging and alerting"
type = string
default = null
}

0 comments on commit d4b6ee0

Please sign in to comment.