add spot_price option to aws_launch_configuration

This commit is contained in:
Dongseob Park
2018-08-07 01:26:52 +00:00
parent 6fbb6a8204
commit c3b1822dfb
3 changed files with 3 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ resource "aws_launch_configuration" "workers" {
key_name = "${lookup(var.worker_groups[count.index], "key_name", lookup(var.workers_group_defaults, "key_name"))}"
user_data_base64 = "${base64encode(element(data.template_file.userdata.*.rendered, count.index))}"
ebs_optimized = "${lookup(var.worker_groups[count.index], "ebs_optimized", lookup(local.ebs_optimized, lookup(var.worker_groups[count.index], "instance_type", lookup(var.workers_group_defaults, "instance_type")), false))}"
spot_price = "${lookup(var.worker_groups[count.index], "spot_price", lookup(var.workers_group_defaults, "spot_price"))}"
count = "${var.worker_group_count}"
lifecycle {