ecs_service does not support the platform-version option #70625
Labels
affects_2.9
This issue/PR affects Ansible v2.9
aws
bug
This issue/PR relates to a bug.
cloud
collection:community.aws
collection
Related to Ansible Collections work
module
This issue/PR relates to a module.
needs_collection_redirect
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md
python3
support:community
This issue/PR relates to code supported by the Ansible community.
traceback
This issue/PR includes a traceback.
SUMMARY
The ecs_service module does not expose the --platform-version option of "aws ecs create-service".
ECS requires "--platform-version 1.4.0" to create a service using ECS Fargate that mounts an EFS volume.
See: https://docs.aws.amazon.com/AmazonECS/latest/userguide/platform_versions.html
Please expose this option so I can use ecs_service instead of shelling out to "aws ecs create-service"
ISSUE TYPE
COMPONENT NAME
ecs_service
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Dockerfile:
./hosts:
STEPS TO REPRODUCE
The following playbook creates a private cloud running an SSH container as an ECS Fargate service, with an EFS volume mounted.
EXPECTED RESULTS
The script completes successfully. You can SSH into the public IP address of the deployed service (as root/root) and interact with the EFS volume mounted at /example.
Note that you can see the expected results by replacing the last line of the script with this workaround:
ACTUAL RESULTS
The last step, the creation of the service itself, fails because the default EFS Fargate platform-version (1.3.0) is incompatible with EFS. The error message is:
The text was updated successfully, but these errors were encountered: