Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I want to use the atlassian/aws-ecs-deploy pipe, but.....

evanmorgan July 17, 2023

I'm not sure how to configure/define where my docker hub image hosts the image to be deployed?

1 answer

2 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2023

Hello @evanmorgan and thank you for reaching out to Community!

You can define the image used by the containers in your ECS deployment by creating a task definition json file and pushing it to your repository. You can find the task definition template in AWS's documentation :

Then you need to configure the pipe's variable TASK_DEFINITION with the path of the task definition json file within your repository.

The following example considers a task-definition.json file in the root of the repository : 

script:
  - pipe: atlassian/aws-ecs-deploy:1.7.0
    variables:
      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
      AWS_DEFAULT_REGION: 'us-east-1'
      CLUSTER_NAME: 'my-ecs-cluster'
      SERVICE_NAME: 'my-ecs-service'
      TASK_DEFINITION: 'task-definition.json'

You can find more details and examples of using the atlassian/aws-ecs-deploy on its official documentation: 

Thank you, @evanmorgan !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events