Socket
Book a DemoInstallSign in
Socket

@cumulus/post-to-cmr

Package Overview
Dependencies
Maintainers
6
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cumulus/post-to-cmr

Post a given granule to CMR

latest
Source
npmnpm
Version
21.0.0
Version published
Maintainers
6
Created
Source

@cumulus/post-to-cmr

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.

Metadata fields updated/managed by Cumulus

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.

Message Configuration

For more information on configuring a Cumulus Message Adapter task, see the Cumulus workflow input/output documentation.

Config

Config object fields:

field nametypedefaultdescription
bucketstring(required)Name of S3 bucket containing public/private key pair to decrypt CMR credentials
processstring(required)Process the granules went through
stackstring(required)Name of deployment stack
cmrobject(required)CMR credentials object
concurrencynumber20Maximum concurrency of requests to CMR
republishbooleanfalseWhether to remove published granules from CMR and republish them again

Input

Input object fields:

field nametypedefaultdescription
granulesarray<object>(required)List of granule objects

Output

Output object fields:

field nametypedefaultvaluesdescription
granulesarray<object>N/AList of granule objects published to CMR
processstringN/AProcess the granules went through

About Cumulus

Cumulus is a cloud-based data ingest, archive, distribution and management prototype for NASA's future Earth science data streams.

Cumulus Documentation

Contributing

To make a contribution, please see our contributing guidelines.

FAQs

Package last updated on 10 Sep 2025

Did you know?

Socket

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.

Install

Related posts