Skip to main content

registry_policy

Gets an individual registry_policy resource

Overview

Nameregistry_policy
TypeResource
Descriptionregistry_policy
Idawscc.ecr.registry_policy

Fields

NameDatatypeDescription
registry_idstring
policy_textobjectThe JSON policy text to apply to your registry. The policy text follows the same format as IAM policy text. For more information, see Registry permissions (https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html) in the Amazon Elastic Container Registry User Guide.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
registry_id,
policy_text
FROM awscc.ecr.registry_policy
WHERE data__Identifier = '<RegistryId>';

Permissions

To operate on the registry_policy resource, the following permissions are required:

Read

ecr:GetRegistryPolicy

Update

ecr:GetRegistryPolicy,
ecr:PutRegistryPolicy

Delete

ecr:DeleteRegistryPolicy