

Environment variable name Value CI_AWS_ECS_CLUSTER The name of the AWS ECS cluster that you’re targeting for your deployments. Selecting the targeted cluster on your Amazon ECS dashboard. For example /ci/aws/task-definition.json.ĬI/CD variables. Use theĪnd save the file in your project. The task definition can be:Ī JSON file in your GitLab project. The same as the Container name defined in your targeted ECS service.

You can reference the image in your project’s. If an image contains the AWS Command Line Interface, To use GitLab CI/CD with branches or tags that are not protected,Ĭlear the Protect variable checkbox. You might want to confirm that the AWS service you intend to use is available in the chosen region. AWS_SECRET_ACCESS_KEY Your secret access key. Set the followingĬI/CD variables: Environment variable name Value AWS_ACCESS_KEY_ID Your Access key ID. In your GitLab project, go to Settings > CI/CD. Note the Access key ID and Secret access key.Go to Security credentials > Create a new access key. Select your user to access its details.To use GitLab CI/CD to connect to AWS, you must authenticate.Īfter you set up authentication, you can configure CI/CD to deploy. If you’re using and deploying to the Amazon Elastic Container Service (ECS), You can reference these images in your CI/CD pipeline. GitLab provides Docker images with the libraries and tools you need to deploy Error 'ascii' codec can't encode character '\uxxxx' Deploy to AWS from GitLab CI/CD.
