terraform-aws-ecs
terraform-aws-ecs copied to clipboard
feat: Add support for EBS volumes
Description
This PR aims to add a feature that allows EBS volumes to be attached to the containers in the tasks.
References
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specify-ebs-config.html
- https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#configure_at_launch
- https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#volume_configuration
Motivation and Context
Currently, the community module is allowing docker_volume_configuration
, efs_volume_configuration
, fsx_windows_file_server_volume_configuration
and bind mounts
.
Issue: https://github.com/terraform-aws-modules/terraform-aws-ecs/issues/202
Breaking Changes
N/A
Tests
-
IAM Role:
-
Task definition:
-
Container definition:
-
Service
How Has This Been Tested?
- [x] I have updated at least one of the
examples/*
to demonstrate and validate my change(s) - [x] I have tested and validated these changes using one or more of the provided
examples/*
projects
- [x] I have executed
pre-commit run -a
on my pull request