Error: Cannot perform an interactive login from a non TTY device

Viewed 559

I am trying to login to ECR from aws codebuild. Buit is says Cannot perform an interactive login from a non TTY device. I have attached AmazonEC2ContainerRegistryFullAccess and AmazonEC2ContainerRegistryPowerUser policy with the service role of codebuild. Still it says

"An error occurred (UnrecognizedClientException) when calling the GetAuthorizationToken operation: The security token included in the request is invalid.

Error: Cannot perform an interactive login from a non TTY device"

I am trying to implement CI/CD using AWS pipeline. On codebuild am trying to build docker image and push it to ECR.

0 Answers
Related