feat: add cnm i/o lambdas to build #414
Draft
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.
What I am changing
Adds PO.DAAC-maintained lambdas to build.
CNMtoCMA (https://github.com/NASA-IMPACT/csda-project/issues/863)
CNMResponse (https://github.com/NASA-IMPACT/csda-project/issues/864)
Colocated with other ingest workflow lambdas (in
cumulus/main.tf
), but absolutely open to relocating while I'm still getting a feel for conventions in this repo !NOTE: These two lambdas are what I'll be demoing on Friday (11/1), in case that helps with review, and I'm happy to tag up for a more technical walkthrough as well.
How I did it
How you can test it
These functions expect Cumulus tasks as input, so the below JSON can be used for testing:
CNMtoCMA input
CNMResponse input
Invoke
cumulus-ali-CNMToCMA
either through the console or CLI=> expect
$.meta.cnm
to capture original CNM=> expect
$.payload
to reflect CNM content as granulesInvoke
cumulus-ali-CnmResponse
either through the console or CLI=> expect
$.meta.cnmResponse
to reflect original CNM=> expect
$.meta.cnmResponse
to contain additional fields$.meta.cnmResponse.receivedTime
$.meta.cnmResponse.response.status
$.meta.cnmResponse.processCompleteTime