AWSServiceRoleForCodeWhispererPolicy
Last Modified
Apr 9, 2026
April 9, 2026 at 07:03 PM UTC
Version
v6
Total Versions
7
Created
Apr 9, 2026
Actions
18
Risk
no risk signalRead from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
IAM Access Analyzer (2)
- Warning / TYPE_MISMATCH
Use the operator type String instead of operator ARN for the condition key kms:EncryptionContext:aws:sso:instance-arn. AWS docs
- Warning / TYPE_MISMATCH
Use the operator type String instead of operator ARN for the condition key kms:EncryptionContext:aws:identitystore:identitystore-arn. AWS docs
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "sid1",
"Effect": "Allow",
"Action": [
"sso-directory:ListMembersInGroup"
],
"Resource": [
"*"
]
},
{
"Sid": "sid2",
"Effect": "Allow",
"Action": [
"sso:ListProfileAssociations",
"sso:ListProfiles",
"sso:ListDirectoryAssociations",
"sso:DescribeRegisteredRegions",
"sso:GetProfile",
"sso:GetManagedApplicationInstance",
"sso:ListApplicationAssignments",
"sso:DescribeInstance",
"sso:DescribeApplication"
],
"Resource": [
"*"
]
},
{
"Sid": "sid3",
"Effect": "Allow",
"Action": [
"codeguru-security:CreateUploadUrl"
],
"Resource": [
"*"
]
},
{
"Sid": "sid4",
"Effect": "Allow",
"Action": [
"codeguru-security:CreateScan",
"codeguru-security:GetScan",
"codeguru-security:ListFindings",
"codeguru-security:GetFindings"
],
"Resource": [
"arn:aws:codeguru-security:*:*:scans/CodeWhisperer-*"
]
},
{
"Sid": "sid5",
"Effect": "Allow",
"Action": [
"cloudwatch:PutMetricData"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"cloudwatch:namespace": [
"AWS/CodeWhisperer"
]
}
}
},
{
"Sid": "AllowKmsAccessViaIdentityCenter",
"Effect": "Allow",
"Action": [
"kms:Decrypt"
],
"Resource": "*",
"Condition": {
"ArnLike": {
"kms:EncryptionContext:aws:sso:instance-arn": "arn:*:sso:::instance/*"
},
"StringLike": {
"kms:ViaService": "sso.*.amazonaws.com"
}
}
},
{
"Sid": "AllowKmsAccessViaIdentityStore",
"Effect": "Allow",
"Action": [
"kms:Decrypt"
],
"Resource": "*",
"Condition": {
"ArnLike": {
"kms:EncryptionContext:aws:identitystore:identitystore-arn": "arn:*:identitystore::*:identitystore/*"
},
"StringLike": {
"kms:ViaService": "identitystore.*.amazonaws.com"
}
}
}
]
},
"VersionId": "v6",
"IsDefaultVersion": true,
"CreateDate": "2026-04-09T18:27:19+00:00"
}
}Version History (10 recorded)
Raw history1 action added
AWSServiceRoleForCodeWhispererPolicy - Policy Version v5
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2026
61b73e3Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 18, 2024
aafbae9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 13, 2024
1b36617Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Apr 1, 2024
ae14ddfUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Mar 29, 2024
b5e44e0Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Mar 4, 2024
d407a26Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Jun 28, 2023
1d63f63Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 26, 2023
17b8c9bUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Mar 24, 2023
10fe4dc