Hello, first thank you for your tutorial it's awesome !!
I encounter a blockage during the CI/CD on the build side. It fails by indicating this error: An error occurred (IncompleteSignatureException) when calling the GetAuthorizationToken operation:..... Error: Cannot perform an interactive login from a non TTY device
I searched everywhere to know where it came from but without success.
I tried this but I get : WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password
I think you need to return to this code aws ecr get-login-password | docker login --username AWS --password-stdin $AWS_REGISTRY_URL. It fails because aws ecr get-login-password command prints nothing to stdout.
Maybe, you have invalid credentials in Gitlab variables? Can you check aws ecr get-login-password command locally with AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID credentials you use in GitLab? You can set credentials locally in nano ~/.aws/credentials
Hello, first thank you for your tutorial it's awesome !!
I encounter a blockage during the CI/CD on the build side. It fails by indicating this error:
An error occurred (IncompleteSignatureException) when calling the GetAuthorizationToken operation:.....Error: Cannot perform an interactive login from a non TTY deviceI searched everywhere to know where it came from but without success.
Hello, thank you!
I think this will solve your problem stackoverflow.com/a/61854312/8153147
So, instead of
aws ecr get-login-password | docker login --username AWS --password-stdin $AWS_REGISTRY_URLuse
docker login -u AWS -p $(aws ecr get-login-password) $AWS_REGISTRY_URLThanks for your response.
I tried this but I get :
WARNING! Using --password via the CLI is insecure. Use --password-stdin.Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password
I think you need to return to this code
aws ecr get-login-password | docker login --username AWS --password-stdin $AWS_REGISTRY_URL. It fails becauseaws ecr get-login-passwordcommand prints nothing to stdout.Maybe, you have invalid credentials in Gitlab variables? Can you check
aws ecr get-login-passwordcommand locally withAWS_SECRET_ACCESS_KEY,AWS_ACCESS_KEY_IDcredentials you use in GitLab? You can set credentials locally innano ~/.aws/credentialsI made it work by adding the creds directly in the project not in the group