From a16ecad9d3115e6034b525e384df4ab357a02980 Mon Sep 17 00:00:00 2001 From: AndyHuang1991 Date: Mon, 15 Jul 2019 20:17:32 +0800 Subject: [PATCH] fix module version for terraform 0.11 compatibility (#17) --- main.tf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index ef07499..2671134 100644 --- a/main.tf +++ b/main.tf @@ -11,7 +11,7 @@ terraform { # --------------------------------------- module "airflow_labels" { - source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=master" + source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=0.2.1" namespace = "${var.cluster_name}" stage = "${var.cluster_stage}" name = "airflow" @@ -19,7 +19,7 @@ module "airflow_labels" { } module "airflow_labels_scheduler" { - source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=master" + source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=0.2.1" namespace = "${var.cluster_name}" stage = "${var.cluster_stage}" name = "airflow" @@ -28,7 +28,7 @@ module "airflow_labels_scheduler" { } module "airflow_labels_webserver" { - source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=master" + source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=0.2.1" namespace = "${var.cluster_name}" stage = "${var.cluster_stage}" name = "airflow" @@ -37,7 +37,7 @@ module "airflow_labels_webserver" { } module "airflow_labels_worker" { - source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=master" + source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=0.2.1" namespace = "${var.cluster_name}" stage = "${var.cluster_stage}" name = "airflow" @@ -122,6 +122,7 @@ POLICY module "sg_airflow" { source = "terraform-aws-modules/security-group/aws" + version = "v2.17.0" name = "${module.airflow_labels.id}-sg" description = "Security group for ${module.airflow_labels.id} machines" vpc_id = "${data.aws_vpc.default.id}" @@ -445,6 +446,7 @@ resource "aws_instance" "airflow_worker" { module "sg_database" { source = "terraform-aws-modules/security-group/aws" + version = "v2.17.0" name = "${module.airflow_labels.id}-database-sg" description = "Security group for ${module.airflow_labels.id} database" vpc_id = "${data.aws_vpc.default.id}"