Removing private image replication settings in Amazon ECR
To remove or disable replication settings for your private registry, you need to configure an empty replication configuration. There is no dedicated removal command in the AWS CLI.
Open the Amazon ECR console at https://console.aws.amazon.com/ecr/repositories
. -
From the navigation bar, choose the Region to remove your registry replication settings from.
-
In the navigation pane, choose Private registry.
-
On the Private registry page, choose Settings and then choose Edit under Replication configuration.
-
Remove all existing replication rules by choosing the delete option for each rule.
-
Choose Save to apply the empty replication configuration.
-
Create a JSON file with an empty rules array to remove all replication settings.
{ "rules": [] }
-
Apply the empty replication configuration to your registry.
aws ecr put-replication-configuration \ --replication-configuration file://
empty-replication-settings.json
\ --regionus-west-2
-
Confirm that replication settings have been removed.
aws ecr describe-registry \ --region
us-west-2
The output should show an empty
replicationConfiguration
with no rules.
Important
Removing replication settings does not delete any previously replicated repositories or images. You must manually delete replicated content if it is no longer needed.