terraform-aws-modules/terraform-aws-efs

throughput_mode: elastic not supported

awscoe opened this issue · 2 comments

Description

EFS supports 3 throughput modes: bursting, provisioned, elastic
Please refer: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/efs_file_system#throughput_mode

But terraform-aws-efs module supports bursting and provisioned throughput modes only.

When trying to use elastic throughout mode getting the following error.

module "efs" {
  source = "terraform-aws-modules/efs/aws"
  performance_mode                = "generalPurpose"
  throughput_mode                 = "elastic"
}

│ Error: expected throughput_mode to be one of [bursting provisioned], got elastic
│ 
│   with module.efs.aws_efs_file_system.this[0],
│   on .terraform/modules/efs-csi.efs/main.tf line 14, in resource "aws_efs_file_system" "this":14:   throughput_mode                 = var.throughput_mode

Please add the support for elastic throughput mode.

the module doesn't limit the throughput_mode - it looks like this option was added in v4.42.0 so you'll just need to ensure you are using at minimum that version of the AWS provider

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.