File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed
Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module "alb" {
55 description = var. description
66 name = var. name
77 enable_access_logs = var. enable_access_logs
8+ internal_alb = var. internal_alb
89 s3_logs_bucket_name = var. s3_logs_bucket_name
910
1011 namespace = var. namespace
Original file line number Diff line number Diff line change 11resource "aws_alb" "this" {
22 name = join (" -" , concat (var. namespace , [var . name ]))
3+ internal = var. internal_alb
34 security_groups = [aws_security_group . this . id ]
45
56 dynamic "access_logs" {
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ variable "enable_access_logs" {
88 default = false
99 description = " Enable or disable ALB access logs. If set to true, logs will be stored in an S3 bucket."
1010}
11+
12+ variable "internal_alb" {
13+ description = " If true, the LB will be internal. Defaults to false"
14+ type = bool
15+ default = false
16+ }
1117variable "name" {
1218 description = " Name for this load balancer"
1319 type = string
Original file line number Diff line number Diff line change @@ -74,6 +74,12 @@ variable "hosted_zone_name" {
7474 default = null
7575}
7676
77+ variable "internal_alb" {
78+ description = " If true, the LB will be internal. Defaults to false"
79+ type = bool
80+ default = false
81+ }
82+
7783variable "issue_certificates" {
7884 description = " Set to false to disable creation of ACM certificates"
7985 type = bool
You can’t perform that action at this time.
0 commit comments