You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ 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.
✋ I have searched the open/closed issues and my issue is not listed.
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:
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
The text was updated successfully, but these errors were encountered: