File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ resource "aws_dynamodb_table" "delta-dynamodb-table" {
6868 name = " imms-${ local . resource_scope } -delta"
6969 billing_mode = " PAY_PER_REQUEST"
7070 hash_key = " PK"
71- stream_enabled = var . mns_publisher_feature_enabled
72- stream_view_type = var . mns_publisher_feature_enabled ? " NEW_IMAGE" : null
71+ stream_enabled = true
72+ stream_view_type = " NEW_IMAGE"
7373 deletion_protection_enabled = ! local. is_temp
7474
7575 attribute {
Original file line number Diff line number Diff line change @@ -4,6 +4,5 @@ dspp_core_account_id = "603871901111"
44pds_environment = " int"
55mns_environment = " dev"
66error_alarm_notifications_enabled = false
7- mns_publisher_feature_enabled = true
87create_mesh_processor = false
98has_sub_environment_scope = true
Original file line number Diff line number Diff line change @@ -4,6 +4,5 @@ dspp_core_account_id = "603871901111"
44pds_environment = " int"
55mns_environment = " dev"
66error_alarm_notifications_enabled = false
7- mns_publisher_feature_enabled = true # Switch this off once tested fully e2e in Lambda branch
87create_mesh_processor = false
98has_sub_environment_scope = true
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ dspp_core_account_id = "603871901111"
44pds_environment = " int"
55mns_environment = " int"
66error_alarm_notifications_enabled = true
7- mns_publisher_feature_enabled = true
87
98# mesh no invocation period metric set to 3 days (in seconds) for preprod environment i.e 3 * 24 * 60 * 60
109mesh_no_invocation_period_seconds = 259200
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ dspp_core_account_id = "603871901111"
44pds_environment = " int"
55mns_environment = " int"
66error_alarm_notifications_enabled = true
7- mns_publisher_feature_enabled = true
87
98# mesh no invocation period metric set to 3 days (in seconds) for preprod environment i.e 3 * 24 * 60 * 60
109mesh_no_invocation_period_seconds = 259200
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ mns_account_id = "758334270304"
55pds_environment = " prod"
66mns_environment = " prod"
77error_alarm_notifications_enabled = true
8- mns_publisher_feature_enabled = true
98
109# mesh no invocation period metric set to 1 day (in seconds) for prod environment i.e 1 * 24 * 60 * 60
1110mesh_no_invocation_period_seconds = 86400
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ mns_account_id = "758334270304"
55pds_environment = " prod"
66mns_environment = " prod"
77error_alarm_notifications_enabled = true
8- mns_publisher_feature_enabled = true
98
109# mesh no invocation period metric set to 1 day (in seconds) for prod environment i.e 1 * 24 * 60 * 60
1110mesh_no_invocation_period_seconds = 86400
Original file line number Diff line number Diff line change 11module "mns_publisher" {
22 source = " ./modules/mns_publisher"
3- count = var. mns_publisher_feature_enabled ? 1 : 0
43
54 ddb_delta_stream_arn = aws_dynamodb_table. delta-dynamodb-table . stream_arn
65 dynamo_kms_encryption_key_arn = data. aws_kms_key . existing_dynamo_encryption_key . arn
7- enable_lambda_alarm = var. error_alarm_notifications_enabled # consider just INT and PROD
6+ enable_lambda_alarm = var. error_alarm_notifications_enabled
87 immunisation_account_id = var. immunisation_account_id
98 is_temp = local. is_temp
109 enable_mns_test_queue = var. mns_environment == " dev"
Original file line number Diff line number Diff line change 1+ output "mns_test_queue_url" {
2+ value = var. enable_mns_test_queue ? aws_sqs_queue. mns_test_notification [0 ]. url : null
3+ description = " URL of the MNS test notifications queue (DEV only)"
4+ }
5+
6+ output "mns_test_queue_arn" {
7+ value = var. enable_mns_test_queue ? aws_sqs_queue. mns_test_notification [0 ]. arn : null
8+ description = " ARN of the MNS test notifications queue (DEV only)"
9+ }
Original file line number Diff line number Diff line change @@ -33,13 +33,3 @@ resource "aws_sqs_queue_policy" "mns_test_notification_sqs" {
3333 queue_url = aws_sqs_queue. mns_test_notification [0 ]. id
3434 policy = data. aws_iam_policy_document . mns_test_notification_sqs_policy [0 ]. json
3535}
36-
37- output "mns_test_queue_url" {
38- value = var. enable_mns_test_queue ? aws_sqs_queue. mns_test_notification [0 ]. url : null
39- description = " URL of the MNS test notifications queue"
40- }
41-
42- output "mns_test_queue_arn" {
43- value = var. enable_mns_test_queue ? aws_sqs_queue. mns_test_notification [0 ]. arn : null
44- description = " ARN of the MNS test notifications queue"
45- }
You can’t perform that action at this time.
0 commit comments