replication_configurations
Creates, updates, deletes or gets a replication_configuration
resource or lists replication_configurations
in a region
Overview
Name | replication_configurations |
Type | Resource |
Description | The 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 |
Id | aws.ecr.replication_configurations |
Fields
Name | Datatype | Description |
---|---|---|
replication_configuration | object | The 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_id | string | The RegistryId associated with the aws account. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ReplicationConfiguration, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ecr.replication_configurations (
ReplicationConfiguration,
region
)
SELECT
'{{ ReplicationConfiguration }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ecr.replication_configurations (
ReplicationConfiguration,
region
)
SELECT
'{{ ReplicationConfiguration }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: replication_configuration
props:
- name: ReplicationConfiguration
value:
ReplicationConfiguration: null
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