-
Notifications
You must be signed in to change notification settings - Fork 1
[PRMP 562] Implement DynamoDB Migration Segment Worker Lambda #471
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
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
cbb7aee
PRMT-562 Created dynamodb migration lambda
PedroSoaresNHS 29d5efe
PRMT-562 Created dynamodb migration lambda
PedroSoaresNHS abe0049
PRMT-562 removed unnecessary roles
PedroSoaresNHS 7debfbf
Merge remote-tracking branch 'origin/main' into PRMP-562
PedroSoaresNHS 7b694d4
PRMT-562 added S3 access permission
PedroSoaresNHS a2855cd
[PRMT-562] added bulk upload report permission
PedroSoaresNHS 29435fb
Merge remote-tracking branch 'origin/main' into PRMP-562
PedroSoaresNHS 29ed226
[PRMT-562] renamed
PedroSoaresNHS 890f3b8
[PRMT-562] fixed name
PedroSoaresNHS 15507fb
PRMP-562 removing Lambda from name
SWhyteAnswer 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
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,39 @@ | ||
| module "migration-dynamodb-lambda" { | ||
| source = "./modules/lambda" | ||
| name = "MigrationDynamoDB" | ||
| handler = "handlers.migration_dynamodb_handler.lambda_handler" | ||
|
|
||
| iam_role_policy_documents = [ | ||
| module.lloyd_george_reference_dynamodb_table.dynamodb_read_policy_document, | ||
| module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document, | ||
| module.bulk_upload_report_dynamodb_table.dynamodb_read_policy_document, | ||
| module.ndr-bulk-staging-store.s3_read_policy_document, | ||
| module.ndr-lloyd-george-store.s3_read_policy_document, | ||
| aws_iam_policy.ssm_access_policy.policy, | ||
| module.ndr-app-config.app_config_policy | ||
| ] | ||
|
|
||
| kms_deletion_window = var.kms_deletion_window | ||
| rest_api_id = null | ||
| api_execution_arn = null | ||
| is_gateway_integration_needed = false | ||
| is_invoked_from_gateway = false | ||
|
|
||
| lambda_environment_variables = { | ||
| WORKSPACE = terraform.workspace | ||
| APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id | ||
| APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id | ||
| APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id | ||
| } | ||
|
|
||
| lambda_timeout = 900 | ||
| memory_size = 1024 | ||
| reserved_concurrent_executions = 200 | ||
|
|
||
| depends_on = [ | ||
| module.lloyd_george_reference_dynamodb_table, | ||
| module.bulk_upload_report_dynamodb_table, | ||
| module.ndr-app-config, | ||
| aws_iam_policy.ssm_access_policy, | ||
| ] | ||
| } | ||
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.