Skip to content

Commit ecb7fd1

Browse files
authored
Added ALB security group (#15)
* Added ALB security group * Added ALB security group * Pin the version
1 parent 3f17463 commit ecb7fd1

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ Available targets:
223223
| alb_ingress_unauthenticated_listener_arns_count | The number of unauthenticated ARNs in `alb_ingress_unauthenticated_listener_arns`. This is necessary to work around a limitation in Terraform where counts cannot be computed | string | `0` | no |
224224
| alb_ingress_unauthenticated_paths | Unauthenticated path pattern to match (a maximum of 1 can be defined) | list | `<list>` | no |
225225
| alb_name | The Name of the ALB | string | - | yes |
226+
| alb_security_group | Security group of the ALB | string | - | yes |
226227
| alb_target_group_alarms_alarm_actions | A list of ARNs (i.e. SNS Topic ARN) to execute when ALB Target Group alarms transition into an ALARM state from any other state. | list | `<list>` | no |
227228
| alb_target_group_alarms_insufficient_data_actions | A list of ARNs (i.e. SNS Topic ARN) to execute when ALB Target Group alarms transition into an INSUFFICIENT_DATA state from any other state. | list | `<list>` | no |
228229
| alb_target_group_alarms_ok_actions | A list of ARNs (i.e. SNS Topic ARN) to execute when ALB Target Group alarms transition into an OK state from any other state. | list | `<list>` | no |

docs/terraform.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
| alb_ingress_unauthenticated_listener_arns_count | The number of unauthenticated ARNs in `alb_ingress_unauthenticated_listener_arns`. This is necessary to work around a limitation in Terraform where counts cannot be computed | string | `0` | no |
1616
| alb_ingress_unauthenticated_paths | Unauthenticated path pattern to match (a maximum of 1 can be defined) | list | `<list>` | no |
1717
| alb_name | The Name of the ALB | string | - | yes |
18+
| alb_security_group | Security group of the ALB | string | - | yes |
1819
| alb_target_group_alarms_alarm_actions | A list of ARNs (i.e. SNS Topic ARN) to execute when ALB Target Group alarms transition into an ALARM state from any other state. | list | `<list>` | no |
1920
| alb_target_group_alarms_insufficient_data_actions | A list of ARNs (i.e. SNS Topic ARN) to execute when ALB Target Group alarms transition into an INSUFFICIENT_DATA state from any other state. | list | `<list>` | no |
2021
| alb_target_group_alarms_ok_actions | A list of ARNs (i.e. SNS Topic ARN) to execute when ALB Target Group alarms transition into an OK state from any other state. | list | `<list>` | no |

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module "webhooks" {
7676
}
7777

7878
module "web_app" {
79-
source = "git::https://github.com/cloudposse/terraform-aws-ecs-web-app.git?ref=tags/0.22.0"
79+
source = "git::https://github.com/cloudposse/terraform-aws-ecs-web-app.git?ref=tags/0.23.0"
8080
namespace = "${var.namespace}"
8181
stage = "${var.stage}"
8282
name = "${var.name}"
@@ -148,6 +148,7 @@ module "web_app" {
148148
alb_target_group_alarms_evaluation_periods = "1"
149149
alb_name = "${var.alb_name}"
150150
alb_arn_suffix = "${var.alb_arn_suffix}"
151+
alb_security_group = "${var.alb_security_group}"
151152

152153
alb_target_group_alarms_alarm_actions = ["${var.alb_target_group_alarms_alarm_actions}"]
153154
alb_target_group_alarms_ok_actions = ["${var.alb_target_group_alarms_ok_actions}"]

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ variable "alb_arn_suffix" {
267267
description = "The ARN suffix of the ALB"
268268
}
269269

270+
variable "alb_security_group" {
271+
type = "string"
272+
description = "Security group of the ALB"
273+
}
274+
270275
variable "alb_target_group_alarms_alarm_actions" {
271276
type = "list"
272277
description = "A list of ARNs (i.e. SNS Topic ARN) to execute when ALB Target Group alarms transition into an ALARM state from any other state."

0 commit comments

Comments
 (0)