We want to save all our AWS accounts credentials in AWS parameter store for better security. now the question is: How can we use the credentials stored in AWS parameter store in GitLab for deployment?
2
-
It depends on where you want to deploy EC2, ECS, you use docker, or just an artifact,...?Youcef LAIDANI– Youcef LAIDANI2022-10-11 10:03:24 +00:00Commented Oct 11, 2022 at 10:03
-
Some teams in the company use Docker and some use ECS.NOUR– NOUR2022-10-11 13:22:18 +00:00Commented Oct 11, 2022 at 13:22
Add a comment
|
1 Answer
In your project, you can configure .gitlab_ci.yaml to make many things, one of them is to deploy your application, and there are many ways, one of them is to:
- Create a docker of your project
- Push the image to ECR
- Create a new ECS task definition with the new version of your docker image
- Create a new ECS service with the new version of the task definition
and to do so, you need effectively the credentials of AWS that you have configured in your GitLab repository.
After that their many ways to deploy from GitLab to AWS, it depends on your company and what tools you are using.