Skip to main content

replication_configurations

Creates, updates, deletes or gets a replication_configuration resource or lists replication_configurations in a region

Overview

Namereplication_configurations
TypeResource
DescriptionThe AWS::ECR::ReplicationConfiguration resource configures the replication destinations for an Amazon Elastic Container Registry (Amazon Private ECR). For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/replication.html
Idaws.ecr.replication_configurations

Fields

NameDatatypeDescription
replication_configurationobjectThe AWS::ECR::ReplicationConfiguration resource configures the replication destinations for an Amazon Elastic Container Registry (Amazon Private ECR). For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/replication.html
registry_idstringThe RegistryId associated with the aws account.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTReplicationConfiguration, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all replication_configurations in a region.

SELECT
region,
replication_configuration,
registry_id
FROM aws.ecr.replication_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual replication_configuration.

SELECT
region,
replication_configuration,
registry_id
FROM aws.ecr.replication_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<RegistryId>';

INSERT example

Use the following StackQL query and manifest file to create a new replication_configuration resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ecr.replication_configurations (
ReplicationConfiguration,
region
)
SELECT
'{{ ReplicationConfiguration }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ecr.replication_configurations
WHERE data__Identifier = '<RegistryId>'
AND region = 'us-east-1';

Permissions

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

Create

ecr:DescribeRegistry,
ecr:PutReplicationConfiguration,
iam:CreateServiceLinkedRole

Read

ecr:DescribeRegistry

Update

ecr:DescribeRegistry,
ecr:PutReplicationConfiguration,
iam:CreateServiceLinkedRole

Delete

ecr:DescribeRegistry,
ecr:PutReplicationConfiguration,
iam:CreateServiceLinkedRole

List

ecr:DescribeRegistry