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

tf apply fails if bastion is not enabled #3

Open
hhoover opened this issue Nov 22, 2022 · 0 comments
Open

tf apply fails if bastion is not enabled #3

hhoover opened this issue Nov 22, 2022 · 0 comments
Assignees

Comments

@hhoover
Copy link
Contributor

hhoover commented Nov 22, 2022

I think the bastion module needs a count to check var.bastion_host_enabled

│ Error: Invalid index
│ 
│   on .terraform/modules/vpc/main.tf line 138, in module "bastion":
│  138:   key_name                    = aws_key_pair.bastion[0].key_name
│     ├────────────────
│     │ aws_key_pair.bastion is empty tuple
│ 
│ The given key does not identify an element in this collection value: the collection has no elements.
@hhoover hhoover self-assigned this Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant