registry_policy
Gets an individual registry_policy
resource
Overview
Name | registry_policy |
Type | Resource |
Description | registry_policy |
Id | awscc.ecr.registry_policy |
Fields
Name | Datatype | Description |
---|---|---|
registry_id | string | |
policy_text | object | The 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. |
region | string | AWS 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