A security engineer is attempting to push a Linux-based container image to an Amazon Elastic Container Registry (Amazon ECR) repository that is in the us-east-1 Region.The security engineer has retrieved an authentication token by using the aws ecr get-login-password AWS CLI command within the last 4 hours.The security engineer has confirmed that the correct permissions are in place to push the container image to the repository.When the security engineer tries to push the container image, the security engineer receives the following error: “no basic auth credentials”.
What should the security engineer do to resolve this error?
Obtain a new authorization token.
Configure the AWS CLI to use us-east-1.
Modify the aws-auth-cm.yaml file to include the IAM role for the security engineer.
Activate AWS Security Token Service (AWS STS) in us-east-1.