Skip to content

Commit

Permalink
Merge pull request #246 from silinternational/release/12.5.0
Browse files Browse the repository at this point in the history
Release 12.5.0 - id-sync heartbeat config
  • Loading branch information
briskt authored Mar 12, 2024
2 parents 45b1188 + dea4d2c commit 4dd5e12
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/070-id-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ store.
- `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
- `event_schedule` - AWS Cloudwatch schedule for the sync task. Use cron format "cron(Minutes Hours Day-of-month Month Day-of-week Year)" where either `day-of-month` or `day-of-week` must be a question mark, or rate format "rate(15 minutes)". Default = "cron(*/15 * * * ? *)"
- `heartbeat_url` - the URL of a monitoring service to call after every successful sync
- `heartbeat_method` - the http method of a monitoring service to call after every successful sync. Uses POST if not specified.

## Usage Example

Expand Down
2 changes: 2 additions & 0 deletions terraform/070-id-sync/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ locals {
allow_empty_email = var.allow_empty_email
enable_new_user_notification = var.enable_new_user_notification
sentry_dsn = var.sentry_dsn
heartbeat_url = var.heartbeat_url
heartbeat_method = var.heartbeat_method
})
}

Expand Down
8 changes: 8 additions & 0 deletions terraform/070-id-sync/task-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@
"name": "SENTRY_MONITOR_SLUG",
"value": "${app_name}-${idp_name}-${app_env}"
},
{
"name": "HEARTBEAT_URL",
"value": "${heartbeat_url}"
},
{
"name": "HEARTBEAT_METHOD",
"value": "${heartbeat_method}"
},
${id_store_config}
],
"links": null,
Expand Down
12 changes: 12 additions & 0 deletions terraform/070-id-sync/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,15 @@ variable "sentry_dsn" {
type = string
default = ""
}

variable "heartbeat_url" {
description = "Optional: configure the URL of a monitoring service to call after every successful sync"
type = string
default = ""
}

variable "heartbeat_method" {
description = "Optional: configure the http method of a monitoring service to call after every successful sync"
type = string
default = ""
}

0 comments on commit 4dd5e12

Please sign in to comment.