skip to Main Content

I’m building a deployment pipeline on AWS for my NodeJs app and I use Redis for caching and creating job queues.
Since AWS ECR can only contain a single container, do I have to create another ECR for my redis instance ?

3

Answers


  1. Chosen as BEST ANSWER

    Looks like AWS provides caching out-of-the-box with Amazon ElastiCache:

    https://aws.amazon.com/getting-started/hands-on/setting-up-a-redis-cluster-with-amazon-elasticache/


  2. An Amazon ECR setup would be targeted towards a single application, for example your website, an API or a microservice. Each ECR repository can support tags so that you can iterate on a new version of the application but you would not share a repository with multiple applications.

    If you’re using Redis there is a official image that you could use rather than you own so you could also take a look at that.

    Login or Signup to reply.
  3. You seem to have some confusion over terms.

    ECR stands for Elastic Container Registry. A registry can hold multiple repositories,
    and a repository holds multiple versions of an image.

    So if you wanted to push a customized Redis image (versus using a standard image or the AWS Elasticache service), you would create a new repository to hold it, within your existing registry.

    Note that ECR registries are per-region. However, since the repository URL contains the region, you don’t need to duplicate your repositories across regions.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search