terraform-aws-modules / terraform-aws-atlantis

Terraform module to deploy Atlantis on AWS Fargate 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/atlantis/aws
Apache License 2.0
520 stars 351 forks source link

Invalid index in module "ecs_service" in v 4.0.1 #369

Closed alexandreags closed 10 months ago

alexandreags commented 10 months ago

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

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

bryantbiggs commented 10 months ago

thank you - this should be fixed in #370

antonbabenko commented 10 months ago

This issue has been resolved in version 4.0.2 :tada:

github-actions[bot] commented 9 months 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.