AWS Greengrass v2 pull docker images from private a ECR registry in a different account

0

Hi,

I am currently deploying docker images using Greengrass Core v2 (GGC) to my edge devices. The docker images and GGC devices are located in the same account. This is working fine with the help of the aws.greengrass.DockerApplicationManager and aws.greengrass.TokenExchangeService components.

Now, I was wondering if it is possible to deploy or pull docker images from a private ECR Registry in a different AWS account than the GGC device. I wouldn't currently know how and where to set appropriate permissions to allow this.

As a workaround, I would otherwise consider the approach of cross-account replication. However, if there is a simpler way, I would be pleased to hear about it.

Thanks in advance!

1 個回答
1
已接受的答案

Greengrass doesn't support this directly. Using the builtin Docker image pulling support that Greengrass provides, your image must be in the same account and region that the Greengrass device is registered in.

You may be able to download the image yourself by using the appropriate commands in your component recipe, but not in a directly provided and supported way. See the ECR documentation for downloading images yourself: https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-pull-ecr-image.html

AWS
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南