codeartifact:CopyPackageVersions is a Write access-level action in the codeartifact service. Grants permission to copy package versions from one repository to another repository in the same domain
ARNs that codeartifact:CopyPackageVersions can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants codeartifact:CopyPackageVersions.
Filters access by tag key-value pairs attached to the resource
A minimal policy that allows codeartifact:CopyPackageVersions. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowCodeartifactCopyPackageVersions",
"Effect": "Allow",
"Action": "codeartifact:CopyPackageVersions",
"Resource": "*"
}
]
}