terraform-aws-modules / terraform-aws-efs

Terraform module to create AWS EFS resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/efs/aws
Apache License 2.0
24 stars 38 forks source link

throughput_mode: elastic not supported #9

Closed awscoe closed 1 year ago

awscoe commented 1 year ago

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.

bryantbiggs commented 1 year ago

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

github-actions[bot] commented 1 year ago

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.