File tree Expand file tree Collapse file tree 11 files changed +66
-34
lines changed Expand file tree Collapse file tree 11 files changed +66
-34
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ Full contributing [guidelines are covered here](.github/contributing.md).
9393
9494| Name | Version |
9595| ------| ---------|
96- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.14 .0 |
96+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.15 .0 |
9797| <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 4.9 |
9898
9999----
Original file line number Diff line number Diff line change 33## main.tf
44``` hcl
55terraform {
6- required_version = ">= 0.14 .0"
6+ required_version = ">= 0.15 .0"
77
88 required_providers {
99 aws = {
@@ -44,8 +44,12 @@ module "clickops_notifications" {
4444 naming_prefix = local.naming_prefix
4545 cloudtrail_bucket_name = aws_s3_bucket.test_bucket.id
4646
47- webhooks_for_slack_notifications = ["https://fake.com"]
48- webhooks_for_msteams_notifications = ["https://fake.com"]
47+ webhooks_for_slack_notifications = {
48+ my-first-notification : "https://fake.com"
49+ }
50+ webhooks_for_msteams_notifications = {
51+ my-second-notification : "https://fake.com"
52+ }
4953
5054 tags = local.tags
5155
@@ -139,7 +143,7 @@ No outputs.
139143
140144| Name | Version |
141145| ------| ---------|
142- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.14 .0 |
146+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.15 .0 |
143147| <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | ~ > 4.9 |
144148| <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | ~ > 3.4 |
145149
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 0.14 .0"
2+ required_version = " >= 0.15 .0"
33
44 required_providers {
55 aws = {
@@ -40,8 +40,12 @@ module "clickops_notifications" {
4040 naming_prefix = local. naming_prefix
4141 cloudtrail_bucket_name = aws_s3_bucket. test_bucket . id
4242
43- webhooks_for_slack_notifications = [" https://fake.com" ]
44- webhooks_for_msteams_notifications = [" https://fake.com" ]
43+ webhooks_for_slack_notifications = {
44+ my- first- notification : " https://fake.com"
45+ }
46+ webhooks_for_msteams_notifications = {
47+ my- second- notification : " https://fake.com"
48+ }
4549
4650 tags = local. tags
4751
Original file line number Diff line number Diff line change 33## main.tf
44``` hcl
55terraform {
6- required_version = ">= 0.14 .0"
6+ required_version = ">= 0.15 .0"
77
88 required_providers {
99 aws = {
@@ -81,8 +81,12 @@ module "clickops_notifications" {
8181
8282 naming_prefix = local.naming_prefix
8383
84- webhooks_for_slack_notifications = ["https://fake.com"]
85- webhooks_for_msteams_notifications = ["https://fake.com"]
84+ webhooks_for_slack_notifications = {
85+ my-first-notification : "https://fake.com"
86+ }
87+ webhooks_for_msteams_notifications = {
88+ my-second-notification : "https://fake.com"
89+ }
8690
8791 tags = local.tags
8892
@@ -270,7 +274,7 @@ No outputs.
270274
271275| Name | Version |
272276| ------| ---------|
273- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.14 .0 |
277+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.15 .0 |
274278| <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | ~ > 4.9 |
275279| <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | ~ > 3.4 |
276280
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 0.14 .0"
2+ required_version = " >= 0.15 .0"
33
44 required_providers {
55 aws = {
@@ -77,8 +77,12 @@ module "clickops_notifications" {
7777
7878 naming_prefix = local. naming_prefix
7979
80- webhooks_for_slack_notifications = [" https://fake.com" ]
81- webhooks_for_msteams_notifications = [" https://fake.com" ]
80+ webhooks_for_slack_notifications = {
81+ my- first- notification : " https://fake.com"
82+ }
83+ webhooks_for_msteams_notifications = {
84+ my- second- notification : " https://fake.com"
85+ }
8286
8387 tags = local. tags
8488
Original file line number Diff line number Diff line change 33## main.tf
44``` hcl
55terraform {
6- required_version = ">= 0.14 .0"
6+ required_version = ">= 0.15 .0"
77
88 required_providers {
99 aws = {
@@ -44,8 +44,12 @@ module "clickops_notifications" {
4444 naming_prefix = local.naming_prefix
4545 cloudtrail_bucket_name = aws_s3_bucket.test_bucket.id
4646
47- webhooks_for_slack_notifications = ["https://fake.com"]
48- webhooks_for_msteams_notifications = ["https://fake.com"]
47+ webhooks_for_slack_notifications = {
48+ my-first-notification : "https://fake.com"
49+ }
50+ webhooks_for_msteams_notifications = {
51+ my-second-notification : "https://fake.com"
52+ }
4953
5054 tags = local.tags
5155
@@ -121,7 +125,7 @@ No outputs.
121125
122126| Name | Version |
123127| ------| ---------|
124- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.14 .0 |
128+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.15 .0 |
125129| <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | ~ > 4.9 |
126130| <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | ~ > 3.4 |
127131
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 0.14 .0"
2+ required_version = " >= 0.15 .0"
33
44 required_providers {
55 aws = {
@@ -40,8 +40,12 @@ module "clickops_notifications" {
4040 naming_prefix = local. naming_prefix
4141 cloudtrail_bucket_name = aws_s3_bucket. test_bucket . id
4242
43- webhooks_for_slack_notifications = [" https://fake.com" ]
44- webhooks_for_msteams_notifications = [" https://fake.com" ]
43+ webhooks_for_slack_notifications = {
44+ my- first- notification : " https://fake.com"
45+ }
46+ webhooks_for_msteams_notifications = {
47+ my- second- notification : " https://fake.com"
48+ }
4549
4650 tags = local. tags
4751
Original file line number Diff line number Diff line change 33## main.tf
44``` hcl
55terraform {
6- required_version = ">= 0.14 .0"
6+ required_version = ">= 0.15 .0"
77
88 required_providers {
99 aws = {
@@ -80,8 +80,12 @@ module "clickops_notifications" {
8080
8181 naming_prefix = local.naming_prefix
8282
83- webhooks_for_slack_notifications = ["https://fake.com"]
84- webhooks_for_msteams_notifications = ["https://fake.com"]
83+ webhooks_for_slack_notifications = {
84+ my-first-notification : "https://fake.com"
85+ }
86+ webhooks_for_msteams_notifications = {
87+ my-second-notification : "https://fake.com"
88+ }
8589
8690 tags = local.tags
8791
@@ -131,7 +135,7 @@ No outputs.
131135
132136| Name | Version |
133137| ------| ---------|
134- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.14 .0 |
138+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.15 .0 |
135139| <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | ~ > 4.9 |
136140| <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | ~ > 3.4 |
137141
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 0.14 .0"
2+ required_version = " >= 0.15 .0"
33
44 required_providers {
55 aws = {
@@ -76,8 +76,12 @@ module "clickops_notifications" {
7676
7777 naming_prefix = local. naming_prefix
7878
79- webhooks_for_slack_notifications = [" https://fake.com" ]
80- webhooks_for_msteams_notifications = [" https://fake.com" ]
79+ webhooks_for_slack_notifications = {
80+ my- first- notification : " https://fake.com"
81+ }
82+ webhooks_for_msteams_notifications = {
83+ my- second- notification : " https://fake.com"
84+ }
8185
8286 tags = local. tags
8387
Original file line number Diff line number Diff line change @@ -140,23 +140,23 @@ module "clickops_notifier_lambda" {
140140}
141141
142142resource "aws_ssm_parameter" "webhooks_for_slack" {
143- for_each = var. webhooks_for_slack_notifications
143+ for_each = nonsensitive ( toset ( keys ( var. webhooks_for_slack_notifications )))
144144
145145 name = " /${ var . naming_prefix } /webhooks-for-slack/${ each . key } "
146146 description = " Webhook \" ${ each . key } \" for clickops notifications via Slack."
147147 type = " SecureString"
148- value = each. value
148+ value = var . webhooks_for_slack_notifications [ each . key ]
149149
150150 tags = var. tags
151151}
152152
153153resource "aws_ssm_parameter" "webhooks_for_msteams" {
154- for_each = var. webhooks_for_msteams_notifications
154+ for_each = nonsensitive ( toset ( keys ( var. webhooks_for_msteams_notifications )))
155155
156156 name = " /${ var . naming_prefix } /webhooks-for-msteams/${ each . key } "
157157 description = " Webhook \" ${ each . key } \" for clickops notifications via MS Teams."
158158 type = " SecureString"
159- value = each. value
159+ value = var . webhooks_for_msteams_notifications [ each . key ]
160160
161161 tags = var. tags
162162}
You can’t perform that action at this time.
0 commit comments