Guimove / terraform-aws-bastion

Terraform module which creates SSH bastion infrastructure on AWS
https://registry.terraform.io/modules/Guimove/bastion/aws
Apache License 2.0
205 stars 186 forks source link

Fix: Issue 164 - SSH rule creation for bastion host without ELB. #169

Open BreakingPitt opened 1 year ago

BreakingPitt commented 1 year ago

SSH rule creation for bastion host without ELB.

This pull request addresses the issue where SSH access wasn't properly configured for bastion hosts when ELB (Elastic Load Balancer) creation was disabled. The problem occurred due to the conditional logic in the count attribute, which excluded SSH rule creation when create_elb was set to false.

This was a critical issue as it prevented secure access to the bastion host in scenarios where ELB wasn't used.

Changes Made.

Modified the count attribute in the Terraform configuration for bastion host security groups to allow SSH rule creation when one of the following conditions is met:

Related Issues:

Closes #164