Error pulling ECR Docker images via Greengrass V2 component recipe

0

Hi,

Pull Docker image from AWS ECR via Docker component recipe's install script fails with the following error-
"Error: Cannot perform an interactive login from a non TTY device"

Does AWS Greengrass V2 only support using Docker images pulled from S3?

Thanks,
Kunal

kunupat
asked 3 years ago637 views
2 Answers
0

We fixed this error by changing the install script like below-

docker login -u AWS -p $(aws ecr get-login-password --region us-east-1) <YOUR-AWS-ACCOUNT-ID>.dkr.ecr.us-east-1.amazonaws.com && docker pull <YOUR-AWS-ACCOUNT-ID>.dkr.ecr.us-east-1.amazonaws.com/<YOUR-CONTAINER>:latest

Thanks,
Kunal

kunupat
answered 3 years ago
0

Hi @kunupat

Please add that aws.greengrass.TokenExchangeService is required to have this working...

Thanks a lot

Edited by: Michaelfi on Feb 13, 2021 9:32 AM

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions