-
Notifications
You must be signed in to change notification settings - Fork 5
CCM-13359 - Determine Volume Group Eligibility #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nhsd-david-wass
merged 22 commits into
main
from
feature/CCM-13359-Volume-Group-Eligibility
Mar 25, 2026
Merged
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
ff90857
Supplier Config table
nhsd-david-wass d88ebab
Get the variant details
nhsd-david-wass 172444a
get rest of dbdata
nhsd-david-wass b56f57f
fix typescript
nhsd-david-wass a0377b6
index rename and permissions
nhsd-david-wass c3c5086
repo logging
nhsd-david-wass f602038
Fix PK name
nhsd-david-wass bde14b0
add filters and error checking
nhsd-david-wass ca6d6d8
refactor to supplier-config services
nhsd-david-wass 489322d
finally get the pool of supplier details
nhsd-david-wass ddfceb4
import schemas from nhs-notify-event-schemas-supplier-config
nhsd-david-wass a9c74f0
new unit tests
nhsd-david-wass 7519bc6
Fix tests due to ESM Error - Not sure why
nhsd-david-wass 9762bcc
new unit tests
nhsd-david-wass fcd217d
transform ignore
nhsd-david-wass eec899d
review changes
nhsd-david-wass bd10f46
package lock
nhsd-david-wass acb99c7
lint fix
nhsd-david-wass 89ff41e
Log errors but do not fail for new allocations
nhsd-david-wass 8a9372b
bug fixes
nhsd-david-wass 81ba144
simplify unit tests
nhsd-david-wass f39e567
sort env_vars alphabetically
nhsd-david-wass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
infrastructure/terraform/components/api/ddb_table_supplier_configuration.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| resource "aws_dynamodb_table" "supplier-configuration" { | ||
| name = "${local.csi}-supplier-config" | ||
| billing_mode = "PAY_PER_REQUEST" | ||
|
|
||
| hash_key = "PK" | ||
| range_key = "SK" | ||
|
|
||
| ttl { | ||
| attribute_name = "ttl" | ||
| enabled = true | ||
| } | ||
|
|
||
| attribute { | ||
| name = "PK" | ||
| type = "S" | ||
| } | ||
|
|
||
| attribute { | ||
| name = "SK" | ||
| type = "S" | ||
| } | ||
|
|
||
| attribute { | ||
| name = "entityType" | ||
| type = "S" | ||
| } | ||
|
|
||
| attribute { | ||
| name = "volumeGroup" | ||
| type = "S" | ||
| } | ||
|
|
||
| // The type-index GSI allows us to query for all supplier configurations of a given type (e.g. all letter supplier configurations) | ||
| global_secondary_index { | ||
| name = "EntityTypeIndex" | ||
| hash_key = "entityType" | ||
| range_key = "SK" | ||
| projection_type = "ALL" | ||
| } | ||
|
|
||
| global_secondary_index { | ||
| name = "volumeGroup-index" | ||
| hash_key = "PK" | ||
| range_key = "volumeGroup" | ||
| projection_type = "ALL" | ||
| } | ||
|
|
||
| point_in_time_recovery { | ||
| enabled = true | ||
| } | ||
|
|
||
| tags = merge( | ||
| local.default_tags, | ||
| { | ||
| NHSE-Enable-Dynamo-Backup-Acct = "True" | ||
| } | ||
| ) | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.