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

Feature Request: Attach EBS volumes on fargate

Open cherrychakri opened this issue 6 months ago β€’ 1 comments

Is your request related to a new offering from AWS?

Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

  • Yes βœ…: ## 5.51.1 (May 24, 2024)

Is your request related to a problem? Please describe.

Add configure_at_launch parameter in volume

Describe the solution you'd like.

If we add the configure_at_launch at line no L735 in https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/v5.12.1/modules/service/main.tf#L735 it would provide the feature

  dynamic "configure_at_launch" {
    for_each = try([volume.value.configure_at_launch], [])
    name = configure_at_launch.value.name
    content {
        dynamic "managed_ebs_volume" {
            for_each = try([configure_at_launch.value.managed_ebs_volume], [])
            content {
                role_arn = try(managed_ebs_volume.value.role_arn)
                encrypted = try(managed_ebs_volume.value.encrypted, null)
                file_system_type = try(managed_ebs_volume.value.file_system_type, null)
                iops = try(managed_ebs_volume.value.iops, null)
                kms_key_id = try(managed_ebs_volume.value.kms_key_id, null)
                size_in_gb = try(managed_ebs_volume.value.snapshot_id, try(managed_ebs_volume.value.size_in_gb, null)) #we should also be able to add greater than or equal to the snaphot size
                snapshot_id = try(managed_ebs_volume.value.snapshot_id, null)
                volume_type = try(managed_ebs_volume.value.volume_type, null)
                dynamic "tag_specifications" {
                    for_each = try([managed_ebs_volume.value.tag_specifications], [])
                    content {
                        resource_type = tag_specifications.value.resource_type
                        propagate_tags = try(tag_specifications.value.propagate_tags, null)
                        tags =  try(tag_specifications.value.tags, null)
                    }
                }
            }
        }
    }
  }

cherrychakri avatar May 16 '25 17:05 cherrychakri

When can we expect it to be merged into master/main

cherrychakri avatar Jun 12 '25 18:06 cherrychakri

This issue has been resolved in version 6.0.0 :tada:

antonbabenko avatar Jul 07 '25 12:07 antonbabenko

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Aug 07 '25 02:08 github-actions[bot]