This article shows how to add Amazon Elastic Container Registry (ECR) in SWIFT. For performing Image registry sync , you need to add/discover the registry in SWIFT.
Pre-requisite:
1. AWS account with an ECR repository.
2. To add an Amazon ECR image registry in SWIFT, you need AWS validate credentials to authenticate and allow SWIFT to discover and manage your registry. To create required credentials with the necessary permissions and retrieving the AWS Access Key and Secret Key, please refer to the Pre-requisite Guide 'Adding Amazon AWS user for SWIFT use' section in the KB document provided below.
https://rackware.freshdesk.com/a/solutions/articles/5000888958?lang=en
Following are steps to discover the ECR registry.
1. We need to login to the ‘SWIFT’ dashboard and navigate to the ‘container registries’ menu and click on ‘Add’ button. Please check below screenshot for your reference.

2. Once you click on the ‘Add’ button, you need to enter the AWS credentials and select Amazon AWS as the registry cloud type to add the ECR registry. Please refer to the screenshot below.

3. Once you click on 'Add' button, then ECR registry will be added. As you can see in the below screenshot, you will be able to see the ECR registry has been added.

4. Click on added ECR registry name, to get more insights of the registry. For example summary, image repositories etc.


What next:
- Re-Discover : This option allows you to re-discover the image registry. If you have added new images or changed some image tags and want them to be reflected in the SWIFT portal, you can re-discover the image registry. Please refer to the link below for detailed steps on how to re-discover a Image registry.
<link>
- Configure : Use this option if you want to modify the image registry configuration. Please check KB Article on 'Configure the image registry'
<link>
- Delete : Use this option to delete the image registry. It will delete from SWIFT dashboard only not from cloud.
## Now that the image registry has been discovered, you may want to set up a DR Policy for Image registry sync Please refer to the KB article below.
<kb_link>
## To sync images from one image registry to another, Please refer to the KB article below.
<https://rackware.freshdesk.com/a/solutions/articles/5000890833?lang=en#Add-new-container-registries>