CmdID

CmdID / aws / aws ecr-public

aws ecr-public set-repository-policy

Applies a repository policy to the specified public repository to control access permissions. AWS CLI reference

4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

4 in the AWS CLI reference
--forceIf the policy that you want to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation.
--policy-textThe JSON repository policy text to apply to the repository.
--registry-idThe Amazon Web Services account ID that's associated with the registry that contains the repository.
--repository-nameThe name of the repository to receive the policy.