diff --git a/README.md b/README.md index c7be3cb..3d1700d 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ No modules. | [bucket\_versioning](#input\_bucket\_versioning) | Enable bucket versioning or not | `bool` | `true` | no | | [cidrs](#input\_cidrs) | List of CIDRs that can access the bastion. Default: 0.0.0.0/0 | `list(string)` |
[| no | | [create\_dns\_record](#input\_create\_dns\_record) | Choose if you want to create a record name for the bastion (LB). If true, 'hosted\_zone\_id' and 'bastion\_record\_name' are mandatory | `bool` | n/a | yes | -| [create\_elb](#input\_create\_elb) | Choose if you want to deploy an ELB for accessing bastion hosts. If true, you must set elb\_subnets and is\_lb\_private | `bool` | `true` | no | +| [create\_elb](#input\_create\_elb) | Choose if you want to deploy an ELB for accessing bastion hosts. Only select false if there is no need to SSH into bastion from outside. If true, you must set elb\_subnets and is\_lb\_private | `bool` | `true` | no | | [disk\_encrypt](#input\_disk\_encrypt) | Instance EBS encryption | `bool` | `true` | no | | [disk\_size](#input\_disk\_size) | Root EBS size in GB | `number` | `8` | no | | [elb\_subnets](#input\_elb\_subnets) | List of subnets where the ELB will be deployed | `list(string)` | `[]` | no | diff --git a/outputs.tf b/outputs.tf index 1f65911..e661899 100644 --- a/outputs.tf +++ b/outputs.tf @@ -5,7 +5,7 @@ output "bastion_auto_scaling_group_name" { output "bastion_elb_id" { description = "The ID of the ELB for bastion hosts" - value = aws_lb.bastion_lb[0].id + value = var.create_elb ? aws_lb.bastion_lb[0].id : null } output "bastion_host_security_group" {
"0.0.0.0/0"
]