Skip to content

Commit 1e7b8f5

Browse files
rhyscoxnhsmjewildnhs
authored andcommitted
CCM-15215 - PR feedback
1 parent 0cc4c4d commit 1e7b8f5

1 file changed

Lines changed: 3 additions & 19 deletions

File tree

infrastructure/terraform/components/callbacks/ssm_parameter_applications_map.tf

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
1-
resource "aws_ssm_parameter" "applications_map_ephemeral" {
2-
count = var.deploy_mock_webhook ? 1 : 0
3-
4-
name = local.applications_map_parameter_name
5-
type = "SecureString"
6-
key_id = module.kms.key_arn
7-
8-
value = jsonencode({
9-
"mock-client" = "mock-application-id"
10-
})
11-
12-
lifecycle {
13-
ignore_changes = [value]
14-
}
15-
}
16-
171
resource "aws_ssm_parameter" "applications_map" {
18-
count = var.deploy_mock_webhook ? 0 : 1
19-
202
name = local.applications_map_parameter_name
213
type = "SecureString"
224
key_id = module.kms.key_arn
235

24-
value = jsonencode({})
6+
value = var.deploy_mock_webhook ? jsonencode({
7+
"mock-client" = "mock-application-id"
8+
}) : jsonencode({})
259

2610
lifecycle {
2711
ignore_changes = [value]

0 commit comments

Comments
 (0)