codeartifact:CreateDomain is a Write access-level action in the codeartifact service. Grants permission to create a new domain
This action does not support resource-level permissions; use "Resource": "*" in your policy.
No condition keys are documented for this action.
A minimal policy that allows codeartifact:CreateDomain. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowCodeartifactCreateDomain",
"Effect": "Allow",
"Action": "codeartifact:CreateDomain",
"Resource": "*"
}
]
}