Skip to content
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

BCDA-8104 (2/2): Add lambda entrypoint for CCLF import #949

Merged
merged 28 commits into from
Jun 10, 2024
Merged

BCDA-8104 (2/2): Add lambda entrypoint for CCLF import #949

merged 28 commits into from
Jun 10, 2024

Conversation

kyeah
Copy link
Contributor

@kyeah kyeah commented Jun 3, 2024

🎫 Ticket

https://jira.cms.gov/browse/BCDA-8104

🛠 Changes

  • Add lambda entrypoint for CCLF import
  • Fix bug in setting filepath

ℹ️ Context for reviewers

This PR allows us to run the CCLF import functionality as a lambda. This should look very similar to the Opt Out Import entrypoint, with some minor changes to run the CCLF import instead of Opt Out import.

In particular...

  1. We expect the infrastructure to be set up similarly (Lambda is triggered by new files arriving in S3)
  2. Lambda code should iterate over all files in the S3 destination and look for CCLF files to import

Note that this PR builds on top of #947. I will wait to merge this until 947 is merged.

✅ Acceptance Validation

  • Unit testing

@kyeah kyeah changed the title BCDA-8104: Add lambda entrypoint for CCLF import BCDA-8104 (2/2): Add lambda entrypoint for CCLF import Jun 4, 2024
func loadBfdS3Params() (string, error) {
env := conf.GetEnv("ENV")

bcdaSession, err := bcdaaws.NewSession("", os.Getenv("LOCAL_STACK_ENDPOINT"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment from the other PR applies here, too, I think this NewSession function may be the spot to consolidate the explanation?

Base automatically changed from kev/lambda-handlers to main June 10, 2024 20:31
@kyeah kyeah merged commit b463675 into main Jun 10, 2024
5 checks passed
@kyeah kyeah deleted the kev/cclf branch June 10, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants