terraform-aws-ecs
terraform-aws-ecs copied to clipboard
Feature Request: Attach EBS volumes on fargate
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)
}
}
}
}
}
}
When can we expect it to be merged into master/main
This issue has been resolved in version 6.0.0 :tada:
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.