hashicorp / terraform-aws-consul

A Terraform Module for how to run Consul on AWS using Terraform and Packer
Apache License 2.0
401 stars 484 forks source link

Add parameter for specifying count of allowed_ssh_security_group_ids #112

Closed dekimsey closed 5 years ago

dekimsey commented 5 years ago

Address the error:

Error: Error running plan: 1 error(s) occurred:

* module.consul-servers.aws_security_group_rule.allow_ssh_inbound_from_security_group_ids: aws_security_group_rule.allow_ssh_inbound_from_security_group_ids: value of 'count' cannot be computed

This is a known limitation of the Terraform API. Hard-coding the value is the only currently available solution.

hashicorp-cla commented 5 years ago

CLA assistant check
All committers have signed the CLA.

dekimsey commented 5 years ago

Now that I'm re-reading the PR, it's summary is pretty awful. I'm sorry for that.

The short of it was applying the consul-cluster module with allowed_ssh_security_group_ids rules only from the bastion security group instead of the default [].

I am running terraform v0.11.11.

I didn't see any examples that set/demo'd the allowed_ssh_security_group_ids functionality.

brikis98 commented 5 years ago

https://github.com/hashicorp/terraform-aws-consul/releases/tag/v0.5.0