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

0

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?

질문됨 일 년 전220회 조회
1개 답변
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

AWS_Guy
답변함 일 년 전
  • Thanks @AWS_Guy . The last two links doesn’t work . Can you send me other examples ?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠