terraform-aws-ecs icon indicating copy to clipboard operation
terraform-aws-ecs copied to clipboard

feat: Add support for EBS volumes

Open rlinstorres opened this issue 8 months ago • 0 comments

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: Screenshot 2024-06-19 at 5 01 15 PM Screenshot 2024-06-19 at 5 04 23 PM

  • Task definition: Screenshot 2024-06-19 at 5 01 42 PM

  • Container definition: Screenshot 2024-06-19 at 5 01 31 PM

  • Service Screenshot 2024-06-19 at 5 01 56 PM

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

rlinstorres avatar Jun 18 '24 13:06 rlinstorres