Commit a5eb26ff authored by Igor Drozdov's avatar Igor Drozdov

Merge branch '210543-update-deploy-ecs' into 'master'

Updated aws-ecs location in ci template

Closes #210543

See merge request gitlab-org/gitlab!27382
parents f5ad5e6c 4bd97fa3
---
title: Update aws-ecs image location in CI template
merge_request: 27382
author:
type: changed
...@@ -39,7 +39,7 @@ Some credentials are required to be able to run `aws` commands: ...@@ -39,7 +39,7 @@ Some credentials are required to be able to run `aws` commands:
```yml ```yml
deploy: deploy:
stage: deploy stage: deploy
image: registry.gitlab.com/gitlab-org/cloud-deploy:latest # see the note below image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest # see the note below
script: script:
- aws s3 ... - aws s3 ...
- aws create-deployment ... - aws create-deployment ...
...@@ -47,7 +47,7 @@ Some credentials are required to be able to run `aws` commands: ...@@ -47,7 +47,7 @@ Some credentials are required to be able to run `aws` commands:
NOTE: **Note:** NOTE: **Note:**
Please note that the image used in the example above Please note that the image used in the example above
(`registry.gitlab.com/gitlab-org/cloud-deploy:latest`) is hosted on the [GitLab (`registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest`) is hosted on the [GitLab
Container Registry](../../user/packages/container_registry/index.md) and is Container Registry](../../user/packages/container_registry/index.md) and is
ready to use. Alternatively, replace the image with another one hosted on [AWS ECR](#aws-ecr). ready to use. Alternatively, replace the image with another one hosted on [AWS ECR](#aws-ecr).
...@@ -119,3 +119,15 @@ After you're all set up on AWS ECS, follow these steps: ...@@ -119,3 +119,15 @@ After you're all set up on AWS ECS, follow these steps:
Finally, your AWS ECS service will be updated with the new revision of the Finally, your AWS ECS service will be updated with the new revision of the
task definition, making the cluster pull the newest version of your task definition, making the cluster pull the newest version of your
application. application.
Alternatively, if you don't wish to use the `Deploy-ECS.gitlab-ci.yml` template
to deploy to AWS ECS, you can always use our
`aws-base` Docker image to run your own [AWS CLI commands for ECS](https://docs.aws.amazon.com/cli/latest/reference/ecs/index.html#cli-aws-ecs).
```yaml
deploy:
stage: deploy
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest
script:
- aws ecs register-task-definition ...
```
...@@ -9,7 +9,7 @@ include: ...@@ -9,7 +9,7 @@ include:
- template: Jobs/Build.gitlab-ci.yml - template: Jobs/Build.gitlab-ci.yml
.deploy_to_ecs: .deploy_to_ecs:
image: registry.gitlab.com/gitlab-org/cloud-deploy:latest image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-ecs:latest
script: script:
- ecs update-task-definition - ecs update-task-definition
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment