Skip to content

Feature Request: Attach EBS volumes on fargate #281

@cherrychakri

Description

@cherrychakri

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)
                    }
                }
            }
        }
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions