how to run processing jobs in ec2 instances from a CI/CD set up in gitlab?


I'm setting up a gitlab project, such that I can start a processing job ( for some data processing ) in an ec2 instance, this is an initial set up , but i'm planning to run some training for my regression models in these instance . for this, i have to store my aws user credentials in gitlab. is there a recommendentaion from aws ? or any articles/blogs/examples for such set up?

asked 9 days ago32 views
1 Answer

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: AWS IAM Roles for EC2 documentation: Blog post on running GitLab CI/CD on AWS: Example GitLab project with EC2 instance and IAM role setup:

answered 8 days ago
  • Thanks @AWS_Guy . The last two links doesn’t work . Can you send me other examples ?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions