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
When tagging a login node as public and spot, Terraform returns the following error:
Initializing Terraform configuration...
╷
│ Error: Invalid index
│
│ on aws/network.tf line 121, in resource "aws_eip" "public_ip":
│ 121: instance = aws_instance.instances[each.key].id
│ ├────────────────
│ │ aws_instance.instances is object with 1 attribute "mgmt1"
│ │ each.key is "login1"
│
│ The given key does not identify an element in this collection value.
```
The text was updated successfully, but these errors were encountered:
When tagging a login node as
public
andspot
, Terraform returns the following error:The text was updated successfully, but these errors were encountered: