Skip to content

Commit f00baa3

Browse files
committed
eli-510 adding permissions for assume role
1 parent 7858399 commit f00baa3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

infrastructure/stacks/api-layer/csoc_log_forwarding.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ data "aws_iam_policy_document" "cwl_subscription_assume_role" {
1616
type = "Service"
1717
identifiers = ["logs.${var.default_aws_region}.amazonaws.com"]
1818
}
19+
20+
condition {
21+
test = "StringLike"
22+
variable = "aws:SourceArn"
23+
values = ["${module.eligibility_signposting_api_gateway.cloudwatch_destination_arn}:*"]
24+
}
25+
26+
condition {
27+
test = "StringEquals"
28+
variable = "aws:SourceAccount"
29+
values = [data.aws_caller_identity.current.account_id]
30+
}
1931
}
2032
}
2133

0 commit comments

Comments
 (0)