-
Notifications
You must be signed in to change notification settings - Fork 2
[PRMP-399] Segment Lambda for DynamoDB Migration #456
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
12 commits
Select commit
Hold shift + click to select a range
c1bf33d
[PRMP-399] segment store s3 bucket
SWhyteAnswer 80f91fb
[PRMP-399] Removing step function
SWhyteAnswer 6c16a47
[PRMP-399] bucket name change
SWhyteAnswer 0d35244
[PRMP-399] Lambda Infra
SWhyteAnswer 4f7bb58
[PRMP-399] shorten lambda name
SWhyteAnswer 4fc9430
[PRMP-399] removing ssm permissions
SWhyteAnswer 8143b28
[PRMP-399] fixing mismatching handler/fucntion names
SWhyteAnswer 6c7c99c
[PRMP-399] change lambda name
SWhyteAnswer 68da9bc
Update infrastructure/lambda-migration-dynamodb-segment.tf
SWhyteAnswer 9377807
[PRMP-399] removing un-needed cors rules
SWhyteAnswer 0ddd13b
[PRMP-399] cors false
SWhyteAnswer 6c576f8
[PRMP-399] describe table policy
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
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,32 @@ | ||
| module "migration-dynamodb-segment-lambda" { | ||
| source = "./modules/lambda" | ||
| name = "MigrationDynamodbSegment" | ||
| handler = "handlers.migration_dynamodb_segment_handler.lambda_handler" | ||
| lambda_timeout = 900 | ||
| memory_size = 1792 | ||
| iam_role_policy_documents = [ | ||
| module.migration-dynamodb-segment-store.s3_read_policy_document, | ||
| module.migration-dynamodb-segment-store.s3_write_policy_document, | ||
| data.aws_iam_policy_document.migration_dynamodb_access.json | ||
| ] | ||
| kms_deletion_window = var.kms_deletion_window | ||
|
|
||
| lambda_environment_variables = { | ||
| WORKSPACE = terraform.workspace | ||
| MIGRATION_SEGMENT_BUCKET_NAME = "${terraform.workspace}-${var.migration_dynamodb_segment_store_bucket_name}" | ||
| } | ||
| is_gateway_integration_needed = false | ||
| is_invoked_from_gateway = false | ||
| } | ||
|
|
||
| data "aws_iam_policy_document" "migration_dynamodb_access" { | ||
| statement { | ||
| effect = "Allow" | ||
| actions = [ | ||
| "dynamodb:DescribeTable" | ||
| ] | ||
| resources = [ | ||
| "arn:aws:dynamodb:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:table/${terraform.workspace}_*" | ||
| ] | ||
| } | ||
| } | ||
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
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.