mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Include execution policy for sentry secret (#10894)
This commit is contained in:
parent
b5e37ce056
commit
e44be70600
@ -88,7 +88,7 @@ module "main" {
|
||||
}
|
||||
}
|
||||
extra_iam_policies = concat(module.firehose-logging.fleet_extra_iam_policies, module.osquery-carve.fleet_extra_iam_policies)
|
||||
extra_execution_iam_policies = concat(module.mdm.extra_execution_iam_policies)
|
||||
extra_execution_iam_policies = concat(module.mdm.extra_execution_iam_policies, [aws_iam_policy.sentry.arn])
|
||||
extra_environment_variables = merge(module.mdm.extra_environment_variables, module.firehose-logging.fleet_extra_environment_variables, module.osquery-carve.fleet_extra_environment_variables, local.extra_environment_variables)
|
||||
extra_secrets = merge(module.mdm.extra_secrets, local.sentry_secrets)
|
||||
}
|
||||
@ -157,6 +157,20 @@ resource "aws_secretsmanager_secret_version" "sentry" {
|
||||
})
|
||||
}
|
||||
|
||||
resource "aws_iam_policy" "sentry" {
|
||||
name = "fleet-sentry-secret-policy"
|
||||
policy = data.aws_iam_policy_document.sentry.json
|
||||
}
|
||||
|
||||
data "aws_iam_policy_document" "sentry" {
|
||||
statement {
|
||||
actions = [
|
||||
"secretsmanager:GetSecretValue",
|
||||
]
|
||||
resources = [aws_secretsmanager_secret.sentry.arn]
|
||||
}
|
||||
}
|
||||
|
||||
module "migrations" {
|
||||
source = "github.com/fleetdm/fleet//terraform/addons/migrations?ref=main"
|
||||
ecs_cluster = module.main.byo-vpc.byo-db.byo-ecs.service.cluster
|
||||
|
Loading…
Reference in New Issue
Block a user