Skip to content

Commit ac1c147

Browse files
anajmi07athewsey
authored andcommitted
Add metadata for CloudWatch PutMetricData permission
1 parent 7a24dc9 commit ac1c147

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

infra/modules/agentcore-iam-role/bedrock-agentcore-policy.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ resource "aws_iam_policy" "monitoring_permissions" {
111111
]
112112
},
113113
{
114+
# WILDCARD JUSTIFICATION: CloudWatch PutMetricData requires Resource="*"
115+
# as per AWS documentation. Condition restricts to bedrock-agentcore namespace only.
116+
# Reference: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricData.html
114117
Effect = "Allow"
115118
Resource = "*"
116119
Action = "cloudwatch:PutMetricData"

0 commit comments

Comments
 (0)