Skip to content

Commit fa44d9e

Browse files
authored
Merge pull request #17 from ec2dream/master
terraform v0.12 support
2 parents a3fc826 + 362fdbe commit fa44d9e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ resource "aws_security_group_rule" "secure_cidrs" {
1212
from_port = 443
1313
to_port = 443
1414
protocol = "TCP"
15-
cidr_blocks = ["${var.ingress_allow_cidr_blocks}"]
15+
cidr_blocks = var.ingress_allow_cidr_blocks
1616

1717
security_group_id = "${aws_security_group.elasticsearch.id}"
1818
}
@@ -61,10 +61,10 @@ resource "aws_elasticsearch_domain" "es" {
6161

6262
vpc_options {
6363
security_group_ids = ["${aws_security_group.elasticsearch.id}"]
64-
subnet_ids = ["${var.subnet_ids}"]
64+
subnet_ids = var.subnet_ids
6565
}
6666

67-
advanced_options {
67+
advanced_options = {
6868
"rest.action.multi.allow_explicit_index" = "${var.rest_action_multi_allow_explicit_index}"
6969
"indices.fielddata.cache.size" = "${var.indices_fielddata_cache_size}"
7070
"indices.query.bool.max_clause_count" = "${var.indices_query_bool_max_clause_count}"
@@ -80,7 +80,7 @@ resource "aws_elasticsearch_domain" "es" {
8080
automated_snapshot_start_hour = "${var.snapshot_start}"
8181
}
8282

83-
tags {
83+
tags = {
8484
Domain = "${var.name}"
8585
}
8686
}

versions.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
terraform {
3+
required_version = ">= 0.12"
4+
}

0 commit comments

Comments
 (0)