Skip to content

Commit

Permalink
fix module version for terraform 0.11 compatibility (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyHuang1991 authored and edbizarro committed Jul 15, 2019
1 parent 24f6c10 commit a16ecad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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"
delimiter = "-"
}

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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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}"
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit a16ecad

Please sign in to comment.