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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则