Socket
Book a DemoInstallSign in
Socket

@cumulus/move-granules

Package Overview
Dependencies
Maintainers
6
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cumulus/move-granules

Move granule files from staging to final location

latest
Source
npmnpm
Version
21.0.0
Version published
Maintainers
6
Created
Source

@cumulus/move-granules

This lambda function is responsible for moving granule files from a file staging location to their final location.

Message Configuration

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

Config

Config object fields:

field nametypedefaultvaluesdescription
bucketstring(required)Name of the source AWS S3 bucket that contains the granule files
bucketsobject(required)Object specifying AWS S3 buckets used by this task
collectionobject(required)The cumulus-api collection object
distribution_endpointstring(required)The API distribution endpoint
duplicateHandlingstringerror
  • error - Throws an error on duplicates
  • replace - Replaces the existing file
  • skip - Skips the duplicate file
  • version - Adds a suffix to the existing filename to avoid a clash
Specifies how duplicate filenames should be handled. In cases where an object collision results in duplicate evaluation, the task will check the database via API for a granuleId collision in another collection and error regardless of this configuration if one is found.
moveStagedFilesbooleantrueCan set to false to skip moving files from the staging location. Defaults to true.
s3MultipartChunksizeMbnumberS3 multipart upload chunk size in MB. If none is specified, the default default_s3_multipart_chunksize_mb is used.
checkCrossCollectionCollisionsbooleantruetrue/falseDefault behavior configures MoveGranules to use the API to determine if a file collision is the result of a file registered to a granule in another collection, and if it is, fail (ignoring duplicateHandling configuration). Setting this value to false disables that check and MoveGranules will not use database checks and assume all collisions are due to same-collection collisions.

Input

Input object fields:

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

Output

Output object fields:

field nametypedefaultdescription
granulesarray<object>N/AList of granule objects with updated S3 location information

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