
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
@cumulus/post-to-cmr
Advanced tools
This lambda function posts granule metadata to CMR (Common Metadata Repository).
It will use the information contained in a metadata file on S3 and post that information to the CMR service.
The S3 metadata file can be either ECHO10 xml
metadata with extension .cmr.xml
or UMM-G JSON
with extension .cmr.json
.
The move-granules
task and the (api)granules.move
function will both update the metadata files on S3. For UMM-G JSON metadata, RelatedUrls
are updated, while ECHO10 XML metadata will maintain the metadata in OnlineAccessURLs
.
A granule's files URL, and Type/Description for UMMG and URLDescription for ECHO10, are modified for each file in the granule based on its bucket location. The metadata URLs are based on the file bucket storage type. Files placed in protected buckets will get a url to the distribution endpoint. Files in public buckets will get direct https
links. URLs not directly related to the granule's files are unmodified and preserved as they exist.
For more information on configuring a Cumulus Message Adapter task, see the Cumulus workflow input/output documentation.
Config object fields:
field name | type | default | description |
---|---|---|---|
bucket | string | (required) | Name of S3 bucket containing public/private key pair to decrypt CMR credentials |
process | string | (required) | Process the granules went through |
stack | string | (required) | Name of deployment stack |
cmr | object | (required) | CMR credentials object |
concurrency | number | 20 | Maximum concurrency of requests to CMR |
republish | boolean | false | Whether to remove published granules from CMR and republish them again |
Input object fields:
field name | type | default | description |
---|---|---|---|
granules | array<object> | (required) | List of granule objects |
Output object fields:
field name | type | default | values | description |
---|---|---|---|---|
granules | array<object> | N/A | List of granule objects published to CMR | |
process | string | N/A | Process the granules went through |
Cumulus is a cloud-based data ingest, archive, distribution and management prototype for NASA's future Earth science data streams.
To make a contribution, please see our contributing guidelines.
[v20.2.1] 2025-08-14
FAQs
Post a given granule to CMR
The npm package @cumulus/post-to-cmr receives a total of 751 weekly downloads. As such, @cumulus/post-to-cmr popularity was classified as not popular.
We found that @cumulus/post-to-cmr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.