Skip to content

Commit db05623

Browse files
authored
VED-982: MNS Notification Complete (#1309)
* VED-981 Add base infrastructure for the MNS Publisher feature (#1191)
1 parent 225409c commit db05623

65 files changed

Lines changed: 3771 additions & 345 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/quality-checks.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,17 @@ jobs:
173173
poetry run coverage run --source=src -m unittest discover || echo "mesh_processor tests failed" >> ../../failed_tests.txt
174174
poetry run coverage xml -o ../../mesh_processor-coverage.xml
175175
176+
- name: Run unittest with mns_publisher
177+
working-directory: lambdas/mns_publisher
178+
id: mnspublisher
179+
env:
180+
PYTHONPATH: ${{ env.LAMBDA_PATH }}/mns_publisher/src:${{ env.LAMBDA_PATH }}/mns_publisher/tests:${{ env.SHARED_PATH }}/src
181+
continue-on-error: true
182+
run: |
183+
poetry install
184+
poetry run coverage run --source=src -m unittest discover || echo "mns_publisher tests failed" >> ../../failed_tests.txt
185+
poetry run coverage xml -o ../../mns_publisher-coverage.xml
186+
176187
- name: Run unittest with coverage-mns-subscription
177188
working-directory: lambdas/mns_subscription
178189
id: mns_subscription

infrastructure/instance/.terraform.lock.hcl

Lines changed: 13 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/instance/dynamodb.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +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 = true
72+
stream_view_type = "NEW_IMAGE"
7173
deletion_protection_enabled = !local.is_temp
7274

7375
attribute {

infrastructure/instance/environments/dev/internal-dev/variables.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ environment = "dev"
22
immunisation_account_id = "345594581768"
33
dspp_core_account_id = "603871901111"
44
pds_environment = "int"
5+
mns_environment = "dev"
56
error_alarm_notifications_enabled = true
67
create_mesh_processor = false
78
has_sub_environment_scope = true

infrastructure/instance/environments/dev/internal-qa/variables.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ environment = "dev"
22
immunisation_account_id = "345594581768"
33
dspp_core_account_id = "603871901111"
44
pds_environment = "int"
5+
mns_environment = "dev"
56
error_alarm_notifications_enabled = false
67
create_mesh_processor = false
78
has_sub_environment_scope = true

infrastructure/instance/environments/dev/pr/variables.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ environment = "dev"
22
immunisation_account_id = "345594581768"
33
dspp_core_account_id = "603871901111"
44
pds_environment = "int"
5+
mns_environment = "dev"
56
error_alarm_notifications_enabled = false
67
create_mesh_processor = false
78
has_sub_environment_scope = true

infrastructure/instance/environments/dev/ref/variables.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ environment = "dev"
22
immunisation_account_id = "345594581768"
33
dspp_core_account_id = "603871901111"
44
pds_environment = "ref"
5+
mns_environment = "dev"
56
error_alarm_notifications_enabled = true
67
create_mesh_processor = false
78
has_sub_environment_scope = true

infrastructure/instance/environments/preprod/int-blue/variables.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ environment = "preprod"
22
immunisation_account_id = "084828561157"
33
dspp_core_account_id = "603871901111"
44
pds_environment = "int"
5+
mns_environment = "int"
56
error_alarm_notifications_enabled = true
67

78
# mesh no invocation period metric set to 3 days (in seconds) for preprod environment i.e 3 * 24 * 60 * 60

infrastructure/instance/environments/preprod/int-green/variables.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ environment = "preprod"
22
immunisation_account_id = "084828561157"
33
dspp_core_account_id = "603871901111"
44
pds_environment = "int"
5+
mns_environment = "int"
56
error_alarm_notifications_enabled = true
67

78
# mesh no invocation period metric set to 3 days (in seconds) for preprod environment i.e 3 * 24 * 60 * 60

infrastructure/instance/environments/prod/blue/variables.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ immunisation_account_id = "664418956997"
33
dspp_core_account_id = "232116723729"
44
mns_account_id = "758334270304"
55
pds_environment = "prod"
6+
mns_environment = "prod"
67
error_alarm_notifications_enabled = true
78

89
# mesh no invocation period metric set to 1 day (in seconds) for prod environment i.e 1 * 24 * 60 * 60

0 commit comments

Comments
 (0)