1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
The IAM Policy Simulator only evaluates the logic of the identity-based policy you provide.
Even if your policy for "bedrock-agentcore:*" is correct, the actual rejection may have been for a different service or action, which could be recorded as a separate event in CloudTrail.
Please check the CloudTrail audit logs to see the detailed error message.
Also, try the following IAM policy.
This is an IAM role suggested for managing Bedrock AgentCore.
Please change the region code to the region you are using.
https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy-permissions.html#policy-permissions-management-role
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "GatewayManagement",
"Effect": "Allow",
"Action": [
"bedrock-agentcore:CreateGateway",
"bedrock-agentcore:UpdateGateway",
"bedrock-agentcore:GetGateway",
"bedrock-agentcore:DeleteGateway",
"bedrock-agentcore:ListGateways",
"bedrock-agentcore:InvokeGateway",
"bedrock-agentcore:CreateGatewayTarget",
"bedrock-agentcore:UpdateGatewayTarget",
"bedrock-agentcore:GetGatewayTarget",
"bedrock-agentcore:DeleteGatewayTarget",
"bedrock-agentcore:ListGatewayTargets"
],
"Resource": [
"arn:aws:bedrock-agentcore:us-east-1:123456789012:gateway/*"
]
},
{
"Sid": "PolicyEngineManagement",
"Effect": "Allow",
"Action": [
"bedrock-agentcore:CreatePolicyEngine",
"bedrock-agentcore:UpdatePolicyEngine",
"bedrock-agentcore:GetPolicyEngine",
"bedrock-agentcore:DeletePolicyEngine",
"bedrock-agentcore:ListPolicyEngines",
"bedrock-agentcore:ListPolicyEngineSummaries",
"bedrock-agentcore:GetPolicyEngineSummary"
],
"Resource": [
"arn:aws:bedrock-agentcore:us-east-1:123456789012:policy-engine/*"
]
},
{
"Sid": "PolicyManagement",
"Effect": "Allow",
"Action": [
"bedrock-agentcore:CreatePolicy",
"bedrock-agentcore:UpdatePolicy",
"bedrock-agentcore:GetPolicy",
"bedrock-agentcore:DeletePolicy",
"bedrock-agentcore:ListPolicies",
"bedrock-agentcore:ListPolicySummaries",
"bedrock-agentcore:GetPolicySummary"
],
"Resource": [
"arn:aws:bedrock-agentcore:us-east-1:123456789012:policy-engine/*/policy/*"
]
},
{
"Sid": "PolicyGeneration",
"Effect": "Allow",
"Action": [
"bedrock-agentcore:StartPolicyGeneration",
"bedrock-agentcore:GetPolicyGeneration",
"bedrock-agentcore:ListPolicyGenerations",
"bedrock-agentcore:ListPolicyGenerationAssets"
],
"Resource": [
"arn:aws:bedrock-agentcore:us-east-1:123456789012:policy-engine/*/policy-generation/*"
]
},
{
"Sid": "IAMPassRole",
"Effect": "Allow",
"Action": [
"iam:PassRole"
],
"Resource": [
"arn:aws:iam::123456789012:role/*BedrockAgentCore*"
],
"Condition": {
"StringEquals": {
"iam:PassedToService": "bedrock-agentcore.amazonaws.com"
}
}
},
{
"Sid": "IAMReadAccess",
"Effect": "Allow",
"Action": [
"iam:GetRole",
"iam:GetRolePolicy",
"iam:ListAttachedRolePolicies",
"iam:ListRolePolicies"
],
"Resource": [
"arn:aws:iam::123456789012:role/*"
]
},
{
"Sid": "PolicyScopeManagement",
"Effect": "Allow",
"Action": [
"bedrock-agentcore:ManageResourceScopedPolicy",
"bedrock-agentcore:ManageAdminPolicy"
],
"Resource": [
"arn:aws:bedrock-agentcore:us-east-1:123456789012:gateway/*"
]
}
]
}

Thanks for your guidance. The original
CreatePolicyEngineissue is resolved; the Policy Engine is ACTIVE insa-east-1.Tagged
CreateLogGroupnow returns HTTP 400AccessDeniedExceptionrequiring the dependent permissionlogs:TagResource. Two controlled attempts failed (request IDs4e9e5fff-461f-4d48-85de-7aa9ed9a7103and9ef68968-38e6-4dc7-b509-f4410a98d497).The provisioner role explicitly allows
logs:TagResourceon the exact log group ARN without:*, as AWS documents. Its conditions restrictaws:TagKeystoSentinelaLab, and useStringEqualsIfExistsforaws:RequestTag/SentinelaLabandaws:ResourceTag/SentinelaLab. A separatelogs:CreateLogGroupAllow requires the exact requested tag value withStringEquals.No permissions boundary, session policy, or Organizations SCP applies. IAM simulation allows the action, but the real call is denied. CloudTrail does not expose the ARN or condition keys evaluated for the dependent tagging check.
Could an AWS engineer clarify: (1) which ARN is evaluated for
logs:TagResourceduring tagged creation; (2) which of those three condition keys are available in that dependent context; (3) the recommended least-privilege pattern for mandatory tags; and (4) whether this is an undocumented limitation or authorization issue?We have stopped retries and IAM changes pending clarification. The log group is for a synthetic defensive research lab with strict resource and tag isolation.
For logs:TagResource, a log group ARN without the :* suffix is used. However, it cannot be conclusively determined from public documentation whether the same ARN is used for the dependent authorization within CreateLogGroup. However, regarding the evaluation of the internal ARN for CreateLogGroup's authorization dependencies, we cannot guarantee that the same format is used. I believe testing is required for this part. https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_LogGroup.html