DEV Community

Discussion on: Securing access to AWS IAM Roles from Gitlab CI

Collapse
 
arit20y profile image
arit20y

Suppose I have created a service account for ECR access. Now how I can generate something below from aws cli:
[profile ecraccess]
role_arn = arn:aws:iam::251297227856:role
source_profile = default
also i need to configure this in .gitlab-ci.yml.

aws ecr get-login-password --region eu-west-1 --profile ecraccess