Closed alexandreags closed 10 months ago
thank you - this should be fixed in #370
This issue has been resolved in version 4.0.2 :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.
Description
│ Error: Invalid index │ │ on main.tf line 378, in module "ecs_service": │ 378: access_point_id = module.efs.access_points["atlantis"].id │ ├──────────────── │ │ module.efs.access_points is object with no attributes │ │ The given key does not identify an element in this collection value.
Versions
Module version 4.0.1:
Terraform version: 1.5.7
Provider version(s): 5.24.0
Reproduction Code: Use default Values
Expected behavior
Actual behavior
Module install successfully
Terminal Output Screenshot(s)
│ Error: Invalid index │ │ on main.tf line 378, in module "ecs_service": │ 378: access_point_id = module.efs.access_points["atlantis"].id │ ├──────────────── │ │ module.efs.access_points is object with no attributes │ │ The given key does not identify an element in this collection value.
Additional context
I have fixed this (temporarily) changing the logic to:
378: access_point_id = try(module.efs.access_points["atlantis"].id, "")
I dont know if this is ideal, but is a workaround