From ef81292b55dc4d3fffbab2a4357c832908bd1d93 Mon Sep 17 00:00:00 2001 From: JackaDu Date: Thu, 7 Mar 2019 17:54:00 -0800 Subject: [PATCH 1/5] test --- main.tf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 57042f14..66c90daf 100644 --- a/main.tf +++ b/main.tf @@ -1,2 +1,13 @@ -resource "null_resource" "force_apply" { +variable "environment_list" { + description = "Environment ID" + type = "list" + default = ["dev", "qa", "prod"] +} +variable "env" { + default = "test" + description = "Which environment do you want (options: dev, qa, prod):" +} +resource "null_resource" "is_environment_name_valid" { + count = "${contains(var.environment_list, var.env) == true ? 0 : 1}" + "ERROR: The env value can only be: dev, qa or prod" = true } From 82feddbf8f2a1233460d70203f5e47ec273ccc57 Mon Sep 17 00:00:00 2001 From: JackaDu Date: Thu, 7 Mar 2019 17:57:14 -0800 Subject: [PATCH 2/5] test --- main.tf | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/main.tf b/main.tf index 66c90daf..e1e0f88b 100644 --- a/main.tf +++ b/main.tf @@ -1,13 +1,3 @@ -variable "environment_list" { - description = "Environment ID" - type = "list" - default = ["dev", "qa", "prod"] -} -variable "env" { - default = "test" - description = "Which environment do you want (options: dev, qa, prod):" -} resource "null_resource" "is_environment_name_valid" { - count = "${contains(var.environment_list, var.env) == true ? 0 : 1}" - "ERROR: The env value can only be: dev, qa or prod" = true + depends_on = [ "${data.aws_route_table.priv}" ] } From 921331419fc50ed6b03d79757d2159b2ad649e2c Mon Sep 17 00:00:00 2001 From: JackaDu Date: Fri, 8 Mar 2019 10:40:11 -0800 Subject: [PATCH 3/5] test --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index e1e0f88b..d505ce29 100644 --- a/main.tf +++ b/main.tf @@ -1,3 +1,3 @@ resource "null_resource" "is_environment_name_valid" { - depends_on = [ "${data.aws_route_table.priv}" ] + test = "test" } From 1a3387d1f13895e72a036add48a1dd9feaefc570 Mon Sep 17 00:00:00 2001 From: JackaDu Date: Fri, 8 Mar 2019 10:42:25 -0800 Subject: [PATCH 4/5] t --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index d505ce29..07d4f681 100644 --- a/main.tf +++ b/main.tf @@ -1,3 +1,3 @@ resource "null_resource" "is_environment_name_valid" { - test = "test" + name = "test" } From 7630950acf458fb174c42761b56a02f676114a49 Mon Sep 17 00:00:00 2001 From: JackaDu Date: Fri, 8 Mar 2019 10:48:44 -0800 Subject: [PATCH 5/5] t --- main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 07d4f681..9a8119f6 100644 --- a/main.tf +++ b/main.tf @@ -1,3 +1,4 @@ -resource "null_resource" "is_environment_name_valid" { - name = "test" +resource "aws_rds_cluster_parameter_group" "test" { + name = "test" + familie = "aurora-postgresql10" }