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

Please update boto3 client in aws-ecs-deploy pipe to the latest version.

László Szabó May 6, 2020

The currently used client (boto3==1.9.139) is outdated and does not support ECS Fargate 1.4 style tasks with EFS volume configuration:

✖ ECS task definition parameter validation error: Parameter validation failed:Unknown parameter in volumes[0]: "efsVolumeConfiguration", must be one of: name, host, dockerVolumeConfiguration

boto3 1.13.3 would be ok.

2 answers

1 accepted

0 votes
Answer accepted
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2020

Hi @László Szabó ,

The new aws-ecs-deploy pipe's version with updates released!

Please provide us feedback about your experience.


Cheers,
Alex

László Szabó May 21, 2020

Thank you! It's working well, I can use the official pipe again.

László

Like Oleksandr Kyrdan likes this
1 vote
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 6, 2020

Hi @László Szabó ,

Thank you for your feedback!

We'll update the boto3 client soon and release a new version.

Cheers,
Alex

Venkat P September 8, 2023

Hi Team,

Using latest yml file I'm unable to update ecs cluster, But i'm able to build image and pushing the image to ecr successfully. And ecs deploy also completed successfully but ecs task revision not updating and Image also not updating.

please suggest someone, and putting my script below.

image: python:3.7.4-alpine3.10
pipelines:
tags:
ecr-release-*:
- step:
name: Build and pushing the Docker Image
services:
- docker
caches:
- pip
script:
- pip3 install awscli
- IMAGE="709724358365.dkr.ecr.ap-south-1.amazonaws.com/testrepo"
- TAG=latest
- aws configure set aws_access_key_id $AWS_ACCESS_KEY
- aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
- aws configure set AWS_DEFAULT_REGION $AWS_REGION
- eval $(aws ecr get-login --no-include-email --region ap-south-1 | sed 's;https://;;g')
- docker build -t $IMAGE:$TAG .
- docker push $IMAGE:$TAG

- step:
name: Get Latest Task Definition Revision
caches:
- pip
script:
- pip3 install awscli
- |
# Get the latest revision of your task definition using AWS CLI and jq
LATEST_REVISION=$(aws ecs list-task-definitions --family testapp-task --query 'taskDefinitionArns[0]' --output json | jq -r '. | split("/") | last')
echo "Latest Task Definition Revision: $LATEST_REVISION"
# Store the latest revision in an environment variable
echo "export LATEST_TASK_DEFINITION=$LATEST_REVISION" >> $task-definition.json



- step:
name: Deploy to ECS
script:
- pipe: atlassian/aws-ecs-deploy:1.8.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_REGION
CLUSTER_NAME: 'myapp-cluster'
SERVICE_NAME: 'testapp-service'
TASK_DEFINITION: $LATEST_TASK_DEFINITION
FORCE_NEW_DEPLOYMENT: 'true'

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events