mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
read replica support in external vuln scan module (#19166)
closes https://github.com/fleetdm/fleet/issues/18926
This commit is contained in:
parent
a0ef33180a
commit
642f2a9e70
1 changed files with 14 additions and 1 deletions
|
|
@ -14,7 +14,8 @@ locals {
|
|||
]
|
||||
secrets = [
|
||||
for k, v in merge(var.fleet_config.extra_secrets, {
|
||||
FLEET_MYSQL_PASSWORD = var.fleet_config.database.password_secret_arn
|
||||
FLEET_MYSQL_PASSWORD = var.fleet_config.database.password_secret_arn
|
||||
FLEET_MYSQL_READ_REPLICA_PASSWORD = var.fleet_config.database.password_secret_arn
|
||||
}) : {
|
||||
name = k
|
||||
valueFrom = v
|
||||
|
|
@ -83,6 +84,18 @@ resource "aws_ecs_task_definition" "vuln-processing" {
|
|||
name = "FLEET_MYSQL_ADDRESS"
|
||||
value = var.fleet_config.database.address
|
||||
},
|
||||
{
|
||||
name = "FLEET_MYSQL_READ_REPLICA_USERNAME"
|
||||
value = var.fleet_config.database.user
|
||||
},
|
||||
{
|
||||
name = "FLEET_MYSQL_READ_REPLICA_DATABASE"
|
||||
value = var.fleet_config.database.database
|
||||
},
|
||||
{
|
||||
name = "FLEET_MYSQL_READ_REPLICA_ADDRESS"
|
||||
value = var.fleet_config.database.rr_address == null ? var.fleet_config.database.address : var.fleet_config.database.rr_address
|
||||
},
|
||||
{
|
||||
name = "FLEET_REDIS_ADDRESS"
|
||||
value = var.fleet_config.redis.address
|
||||
|
|
|
|||
Loading…
Reference in a new issue