Skip to content

Commit 9ae29fb

Browse files
authored
Merge pull request #23 from silinternational/feature/asg-additional-user-data
Release v0.10.5 - Add `asg_additional_user_data` variable
2 parents b131ebe + cefb6aa commit 9ae29fb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ variable "alarm_actions_enabled" {
106106
type = bool
107107
}
108108

109+
variable "asg_additional_user_data" {
110+
description = "Bash code to append to the default EC2 user_data."
111+
type = string
112+
default = ""
113+
}
114+
109115
variable "asg_min_size" {
110116
description = "The minimum size of the Autoscaling Group"
111117
default = 1

vpc.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ module "alb" {
113113
*/
114114
module "ecsasg" {
115115
source = "silinternational/ecs-asg/aws"
116-
version = "~> 4.0"
116+
version = "~> 4.1"
117117

118118
cluster_name = local.app_name_and_env
119119
subnet_ids = module.vpc.private_subnet_ids
@@ -128,4 +128,5 @@ module "ecsasg" {
128128
tags = var.asg_tags
129129
enable_ipv6 = var.enable_ipv6
130130
enable_ec2_detailed_monitoring = var.enable_ec2_detailed_monitoring
131+
additional_user_data = var.asg_additional_user_data
131132
}

0 commit comments

Comments
 (0)