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 .terraform/modules/ecs_cluster.autoscaling/main.tf line 22, in locals:
│ 22: iam_instance_profile_arn = var.create_iam_instance_profile ? aws_iam_instance_profile.this[0].arn : var.iam_instance_profile_arn
│ ├────────────────
│ │ aws_iam_instance_profile.this is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/ecs_cluster.autoscaling/main.tf line 22, in locals:
│ 22: iam_instance_profile_arn = var.create_iam_instance_profile ? aws_iam_instance_profile.this[0].arn : var.iam_instance_profile_arn
│ ├────────────────
│ │ aws_iam_instance_profile.this is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days
Description
When setting create_iam_instance_profile, the module fails.
If your request is for a new feature, please use the
Feature request
template.Versions
Module version [Required]: 7.4.1
Terraform version:
v1.7.4
Provider version(s):
Reproduction Code [Required]
vars:
Steps to reproduce the behavior:
Expected behavior
To create IAM Instance role
Actual behavior
The text was updated successfully, but these errors were encountered: