Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion iam_pipes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,16 @@ locals {
matching_services = ["batch"]
},
logs = {
values = [v.target],
values = flatten([
"${v.target}:*",
[
for pipe in var.pipes : [
for log_config in try([pipe.log_configuration], []) : [
for cloudwatch_log in try([log_config.cloudwatch_logs_log_destination], []) : "${cloudwatch_log.log_group_arn}:*"
]
]
]
]),
matching_services = ["logs"]
},
ecs = {
Expand Down
Loading