We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7858399 commit f00baa3Copy full SHA for f00baa3
infrastructure/stacks/api-layer/csoc_log_forwarding.tf
@@ -16,6 +16,18 @@ data "aws_iam_policy_document" "cwl_subscription_assume_role" {
16
type = "Service"
17
identifiers = ["logs.${var.default_aws_region}.amazonaws.com"]
18
}
19
+
20
+ condition {
21
+ test = "StringLike"
22
+ variable = "aws:SourceArn"
23
+ values = ["${module.eligibility_signposting_api_gateway.cloudwatch_destination_arn}:*"]
24
+ }
25
26
27
+ test = "StringEquals"
28
+ variable = "aws:SourceAccount"
29
+ values = [data.aws_caller_identity.current.account_id]
30
31
32
33
0 commit comments