Support Request for atlassian/aws-ecs-deploy:1.12.2 Pipe

Anael Ivanov Garcia Lagos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 24, 2024

Issue Summary:
I am attempting to define a restartPolicy for one of my containers in an ECS task definition, but I am encountering the following error:


Unknown parameter in containerDefinitions[1]: "restartPolicy", must be one of: name, image, repositoryCredentials, cpu, memory, memoryReservation, links, portMappings, essential, entryPoint, command, environment, environmentFiles, mountPoints, volumesFrom, linuxParameters, secrets, dependsOn, startTimeout, stopTimeout, hostname, user, workingDirectory, disableNetworking, privileged, readonlyRootFilesystem, dnsServers, dnsSearchDomains, extraHosts, dockerSecurityOptions, interactive, pseudoTerminal, dockerLabels, ulimits, logConfiguration, healthCheck, systemControls, resourceRequirements, firelensConfiguration, credentialSpecs


Pipe Version:
I am using atlassian/aws-ecs-deploy:1.12.2.


Steps to Reproduce:

  1. Define a container configuration with a restartPolicy parameter in the ECS task definition.
  2. Deploy the task definition using the aws-ecs-deploy pipe.

Container Definition:
Here is the container definition I am using:

Screenshot 2024-12-24 132713.png

 

Screenshot 2024-12-24 132808.png

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 26, 2024

Hey @Anael Ivanov Garcia Lagos ,

and welcome to the Community!

The boto3 version used by that pipe is currently v1.33, which does not yet support the restartPolicy parameter (boto3 1.33 task definition).

I have contacted our engineering team, and they have created a task to update that pipe's dependencies to more recent ones, including boto3.

In the meantime, since pipe's code is public, you also have the option to fork its code and make changes/adjusts for your use-case : 

Thank you, @Anael Ivanov Garcia Lagos !

Patrik S

 

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2025

Hi @Anael Ivanov Garcia Lagos,

A new version of the pipe has been released, atlassian/aws-ecs-deploy:1.13.0, with a newer version of the boto3 package, which should resolve the issue:

Please feel free to let us know how it goes when you have a chance to try it!

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events