1 Answer
- Newest
- Most votes
- Most comments
1
Storing AWS user credentials in GitLab is not recommended because it poses a security risk. Instead, you can use AWS IAM roles to grant access to your EC2 instances.
Here are some resources that can help you set up your GitLab project to run processing jobs in EC2 instances using IAM roles:
GitLab Runner documentation: https://docs.gitlab.com/runner/ AWS IAM Roles for EC2 documentation: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html Blog post on running GitLab CI/CD on AWS: https://aws.amazon.com/blogs/opensource/running-gitlab-ci-cd-on-aws/ Example GitLab project with EC2 instance and IAM role setup: https://gitlab.com/alexta/awsgitlabcicd
answered 2 years ago
Relevant content
- asked 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Thanks @AWS_Guy . The last two links doesn’t work . Can you send me other examples ?