hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

resource/aws_m2_environment: Should support setting both `efs` and `fsx` storage #38140

Closed gdavison closed 3 weeks ago

gdavison commented 3 months ago

Terraform Core Version

All

AWS Provider Version

5.55.0

Affected Resource(s)

aws_m2_environment

Expected Behavior

Both efs and fsx storage should be settable at the same time

Actual Behavior

The provider returns an error

2 attributes specified when one (and only one) of [storage_configuration[0].efs.<.efs,storage_configuration[0].efs.<.fsx] is required

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_m2_environment" "example" {
  name               = "example"
  engine_type        = "bluage"
  engine_version     = "3.7.0"
  instance_type      = "M2.m5.large"
  security_group_ids = [aws_security_group.example.id]
  subnet_ids         = aws_subnet. example[*].id

  storage_configuration {
    efs {
      file_system_id = aws_efs_file_system.example.id
      mount_point    = "/m2/mount/efsexample"
    }
    fsx {
      file_system_id = aws_fsx_lustre_file_system.example.id
      mount_point    = "/m2/mount/fsxexample"
    }
  }
}

Steps to Reproduce

Apply the configuration

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 3 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

gdavison commented 1 month ago

Already done

github-actions[bot] commented 3 weeks ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.