简体   繁体   中英

How to get ECR_AWS_ACCESS_KEY and ECR_AWS_SECRET_ACCESS_KEY

So I've just been handed over to a project using AWS and gitlab. The pipeline was working before but then we moved the organization into another larger organization (Not sure if this is relevant or not).

But I'm geting the error

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

How do I get the ECR_AWS_ACCESS_KEY_ID and ECR_AWS_SECRET_ACCESS_KEY from a particular IAM User?

The error indicates that the credentials used by the pipeline are not valid.

How do I get the ECR_AWS_ACCESS_KEY_ID and ECR_AWS_SECRET_ACCESS_KEY from a particular IAM User?

There's no such thing. You should be using AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY . Setup an IAM user with programmatic access with the required permissions and then use the credentials associated with said user.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM