View a markdown version of this page

Associating AWS Marketplace products with premium repositories in Amazon ECR Public - Amazon ECR Public

Associating AWS Marketplace products with premium repositories in Amazon ECR Public

AWS Marketplace products are how customers gain access to pull from premium repositories. When a customer purchases a product, they're entitled to pull from all of the premium repositories that are associated with that product.

Products and premium repositories have the following relationship:

  • Each premium repository must be associated with at least one, and up to five, AWS Marketplace products. A customer who is entitled to any one of those products can pull from the repository.

  • A product can be associated with any number of premium repositories. Use this to sell several repositories together under one product.

Note

Only AWS Marketplace products that use Amazon ECR Public as their delivery option can be associated with premium repositories. You can't associate products that use any other delivery option.

Access is time bound

A customer's access to a premium repository lasts for the term of their AWS Marketplace agreement for an associated product. During the agreement, customers can pull images and store them anywhere, such as in their own Amazon ECR private registry.

When the agreement expires, the customer can no longer pull from the premium repository. Any images that the customer already pulled and stored elsewhere remain available to them.

Examples

The following examples show common ways to associate products with premium repositories.

Selling a Helm chart

A Helm chart and the container images that it deploys are stored in separate repositories. To sell a Helm chart, associate your product with the chart repository and with each image repository that the chart references. Customers who purchase the product can then pull the chart and every image it needs.

For example, a product named example-app is associated with the following premium repositories:

  • example-app-chart – The Helm chart.

  • example-app-api – An image that the chart deploys.

  • example-app-worker – An image that the chart deploys.

If you leave an image repository out of the product, customers can pull the chart but can't pull that image, and the chart fails to deploy. For more information about pushing Helm charts, see Pushing a Helm chart to a public repository in Amazon ECR public.

Selling a standalone premium repository

To sell access to a standalone premium repository, associate one product with one premium repository. Access is always granted at the repository level. Customers who purchase the product can pull every image and tag in that repository.

For example, a product named example-db is associated with the premium repository example-db.

Selling a catalog

To sell a collection of images under one purchase, associate one product with every premium repository in the collection. Customers who purchase the product can pull from all of those repositories. When you add a repository to the catalog later, associate it with the same product, and existing customers can pull from it right away.

For example, a product named example-catalog-images is associated with the following premium repositories:

  • example-catalog/python

  • example-catalog/node

  • example-catalog/nginx

Changing associated products

The put-premium-repository-products command replaces the full list of associated products to a repository. To add a product, include the existing product IDs and the new product ID.

aws ecr-public put-premium-repository-products \ --repository-name my-premium-app \ --marketplace-products prod-abcd1234example prod-efgh5678example \ --region us-east-1
Important

You can remove products only while a premium repository is in the DRAFT state. After the repository leaves the DRAFT state, you can add products but you can't remove them. At least one product must remain. For more information, see Restrictions after the draft state.