Skip to content

Commit dda6cdf

Browse files
separate the ssm_parameter to its own file
1 parent f7ac687 commit dda6cdf

2 files changed

Lines changed: 17 additions & 18 deletions

File tree

infrastructure/terraform/components/api/module_lambda_supplier_mock.tf

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,6 @@ module "supplier_mock" {
4343
})
4444
}
4545

46-
resource "aws_ssm_parameter" "supplier_mock_config" {
47-
count = var.deploy_supplier_mock_scheduler ? 1 : 0
48-
name = format("/nhs/supapi/%s/supplier-mock/config", var.environment)
49-
description = "JSON object containing supplier mock config for supplierID, getLetters limit, specificationId mapping, etc."
50-
type = "String"
51-
value = jsonencode({
52-
limit = "100"
53-
supplier_id = "TestSupplier1"
54-
specification_id_mapping = {
55-
"test-specification-id-1" = "ACCEPTED"
56-
}
57-
})
58-
59-
lifecycle {
60-
ignore_changes = [value]
61-
}
62-
}
63-
6446
data "aws_iam_policy_document" "supplier_mock_lambda" {
6547
statement {
6648
sid = "KMSPermissions"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
resource "aws_ssm_parameter" "supplier_mock_config" {
2+
count = var.deploy_supplier_mock_scheduler ? 1 : 0
3+
name = format("/nhs/supapi/%s/supplier-mock/config", var.environment)
4+
description = "JSON object containing supplier mock config for supplierID, getLetters limit, specificationId mapping, etc."
5+
type = "String"
6+
value = jsonencode({
7+
limit = "100"
8+
supplier_id = "TestSupplier1"
9+
specification_id_mapping = {
10+
"test-specification-id-1" = "ACCEPTED"
11+
}
12+
})
13+
14+
lifecycle {
15+
ignore_changes = [value]
16+
}
17+
}

0 commit comments

Comments
 (0)