Skip to content

Commit

Permalink
Give EventBridge permission to call DB Maintenance lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Jun 4, 2024
1 parent bbffb1e commit c465f09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data_services/postgres.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,16 @@ module "maintenance_lambda" {
runtime = "python3.10"
source_path = "${path.module}/db_maintenance"
timeout = 600
publish = true

vpc_subnet_ids = module.core.outputs.vpc.public_subnets.ids
vpc_security_group_ids = [aws_security_group.db_client.id]
attach_network_policy = true

allowed_triggers = {
DBMaintenanceRule = {

principal = "events.amazonaws.com"
}
}
}

0 comments on commit c465f09

Please sign in to comment.