Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instances with attachment cannot be spot instances #186

Open
cmd-ntrf opened this issue Jul 19, 2021 · 0 comments
Open

Instances with attachment cannot be spot instances #186

cmd-ntrf opened this issue Jul 19, 2021 · 0 comments
Assignees
Labels
aws bug Something isn't working

Comments

@cmd-ntrf
Copy link
Member

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.
``` 

@cmd-ntrf cmd-ntrf added bug Something isn't working aws labels Jul 19, 2021
@cmd-ntrf cmd-ntrf self-assigned this Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant