-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BCDA-8234: Import a single CCLF file zip when triggered by BFD S3 not…
…ifications (#968) ## 🎫 Ticket https://jira.cms.gov/browse/BCDA-8234 ## 🛠 Changes - Update lambda entrypoint to only import the CCLF file that caused the lambda instance to start - Consolidate "valid2" test zips into a single zip to match production format (CCLF0 and CCLF8 files come in a single zip, not split across multiple zips) ## ℹ️ Context To avoid race conditions, we would like to ensure that each lambda instance imports only the CCLF file that started the lambda instance via S3 notifications. This ensures that each lambda instance has exactly one file responsibility, and there are no conflicts between lambdas attempting to import the same file. Note that this technically allows us to still process entire directories at once by manually sending events in the AWS Console with just the directory name, instead of the path for a single file. ## 🧪 Validation - Updated unit tests
- Loading branch information
Showing
7 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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
Binary file not shown.
Binary file removed
BIN
-501 Bytes
shared_files/cclf/archives/valid2/T.BCD.A0002.ZCY18.D181120.T1000000
Binary file not shown.
Binary file removed
BIN
-747 Bytes
shared_files/cclf/archives/valid2/T.BCD.A0002.ZCY18.D181121.T1000000
Binary file not shown.
Binary file removed
BIN
-338 Bytes
shared_files/cclf/archives/valid2/T.BCD.A0002.ZCY18.D181122.T1000000
Binary file not shown.