AWSCodeArtifactReadOnlyAccess
Summary
Provides read only access to AWS CodeArtifact via the AWS Management Console.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccess- Default version
- v1
- Created
- Last edited
- Services
- codeartifact, sts
Control-plane actions (26)
By access level: 12 List, 14 Read.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| CodeArtifact | 25 of 51 | 12 List, 13 Read; 0 restricted, 0 conditional | codeartifact:Describe*, codeartifact:Get*, codeartifact:List*, codeartifact:ReadFromRepository |
| STS | 1 of 16 | 1 Read; 1 restricted, 1 conditional | sts:GetServiceBearerToken |
CodeArtifact: 25 actions
- codeartifact:DescribeDomain (Read)
- codeartifact:DescribePackage (Read)
- codeartifact:DescribePackageGroup (Read)
- codeartifact:DescribePackageVersion (Read)
- codeartifact:DescribeRepository (Read)
- codeartifact:GetAssociatedPackageGroup (Read)
- codeartifact:GetAuthorizationToken (Read)
- codeartifact:GetDomainPermissionsPolicy (Read)
- codeartifact:GetPackageVersionAsset (Read)
- codeartifact:GetPackageVersionReadme (Read)
- codeartifact:GetRepositoryEndpoint (Read)
- codeartifact:GetRepositoryPermissionsPolicy (Read)
- codeartifact:ListAllowedRepositoriesForGroup (List)
- codeartifact:ListAssociatedPackages (List)
- codeartifact:ListDomains (List)
- codeartifact:ListPackageGroups (List)
- codeartifact:ListPackageVersionAssets (List)
- codeartifact:ListPackageVersionDependencies (List)
- codeartifact:ListPackageVersions (List)
- codeartifact:ListPackages (List)
- codeartifact:ListRepositories (List)
- codeartifact:ListRepositoriesInDomain (List)
- codeartifact:ListSubPackageGroups (List)
- codeartifact:ListTagsForResource (List)
- codeartifact:ReadFromRepository (Read)
STS: 1 actions
- sts:GetServiceBearerToken (Read)
Data-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
Excluded and conditional actions
No patterns are excluded by NotAction or Deny statements.
Resource scope and attachment
Resource scope across granted actions: all-resources.
Can be attached: Yes, to users, groups and roles.
Why this tier
- Grants only List and Read actions.
Guidance
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Related policies
Same service
Same domain
Frequently asked questions
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"codeartifact:Describe*",
"codeartifact:Get*",
"codeartifact:List*",
"codeartifact:ReadFromRepository"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "sts:GetServiceBearerToken",
"Resource": "*",
"Condition": {
"StringEquals": {
"sts:AWSServiceName": "codeartifact.amazonaws.com"
}
}
}
]
}
Version history
Current version v1, edited by AWS on 2020-06-25. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.
Attach snippets
AWS CLI
aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccess
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccess
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccessCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccessTerraform
resource "aws_iam_role_policy_attachment" "awscodeartifactreadonlyaccess" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccess"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AWSCodeArtifactReadOnlyAccess"),
);Sources
Pending editorial review. No editorial sources are listed yet.