This article shows how to connect the SWIFT with Amazon Elastic Container Registry (ECR).  SWIFT can pull container images directly from ECR. This makes it easier  to manage images in a secure way.


Pre-requisite:  

    1. AWS account with an ECR repository.

    2. AWS CLI installed and configured. 

    3. 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. For that please refer to the Pre-requisite Guide (pages 45–51) 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. When expand then you will get more insights of the added registry. For example summary, image repositories etc.