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:
restartPolicy
parameter in the ECS task definition.aws-ecs-deploy
pipe.Container Definition:
Here is the container definition I am using:
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.