File tree Expand file tree Collapse file tree 3 files changed +25
-10
lines changed
Expand file tree Collapse file tree 3 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 77- Fix the 4 subnet fixed mapping
88- Fill in some examples
99
10+ ## 0.0.10
11+
12+ #### IMPROVEMENTS:
13+ - Terraform 0.8.x compatibility updates.
14+
15+ ## 0.0.9
16+
17+ #### IMPROVEMENTS:
18+ - Added AMIs in Oregon (us-west-2)
19+
1020## 0.0.8
1121
1222#### IMPROVEMENTS:
Original file line number Diff line number Diff line change @@ -197,29 +197,28 @@ data "template_file" "user_data" {
197197
198198# # Creates auto scaling cluster
199199module "cluster" {
200- source = " github.com/unifio/terraform-aws-asg?ref=v0.2 .0//group"
200+ source = " github.com/unifio/terraform-aws-asg?ref=v0.3 .0//group"
201201
202202 # Resource tags
203203 stack_item_label = " ${ var . stack_item_label } "
204204 stack_item_fullname = " ${ var . stack_item_fullname } "
205205
206206 # VPC parameters
207207 vpc_id = " ${ var . vpc_id } "
208- subnets = " ${ var . subnets } "
209- region = " ${ var . region } "
208+ subnets = [" ${ var . subnets } " ]
210209
211210 # LC parameters
212- ami = " ${ coalesce (var. ami_custom , lookup (var. ami_region_lookup , var. region ))} "
213- instance_type = " ${ var . instance_type } "
214- instance_profile = " ${ aws_iam_instance_profile . profile . id } "
215- user_data = " ${ data . template_file . user_data . rendered } "
216- key_name = " ${ var . key_name } "
217- ebs_optimized = false
211+ ami = " ${ coalesce (var. ami_custom , lookup (var. ami_region_lookup , var. region ))} "
212+ instance_based_naming_enabled = " ${ var . instance_based_naming_enabled } "
213+ instance_type = " ${ var . instance_type } "
214+ instance_profile = " ${ aws_iam_instance_profile . profile . id } "
215+ user_data = " ${ data . template_file . user_data . rendered } "
216+ key_name = " ${ var . key_name } "
218217
219218 # ASG parameters
220219 max_size = 2
221220 min_size = 1
222221 hc_grace_period = 300
223222 min_elb_capacity = 1
224- load_balancers = " ${ aws_elb . elb . id } "
223+ load_balancers = [ " ${ aws_elb . elb . id } " ]
225224}
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ variable "ami_region_lookup" {
4545 }
4646}
4747
48+ variable "instance_based_naming_enabled" {
49+ type = " string"
50+ description = " Flag to enable instance-id based name tagging."
51+ default = " "
52+ }
53+
4854variable "instance_type" {
4955 type = " string"
5056 description = " EC2 instance type to associate with the launch configuration."
You can’t perform that action at this time.
0 commit comments