@cumulus/move-granules

18.2.0 • Public • Published

@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 name type default values description
bucket string (required) Name of the source AWS S3 bucket that contains the granule files
buckets object (required) Object specifying AWS S3 buckets used by this task
collection object (required) The cumulus-api collection object
distribution_endpoint string (required) The API distribution endpoint
duplicateHandling string error
  • 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
moveStagedFiles boolean true Can set to false to skip moving files from the staging location. Defaults to true.
s3MultipartChunksizeMb number S3 multipart upload chunk size in MB. If none is specified, the default default_s3_multipart_chunksize_mb is used.

Input

Input object fields:

field name type default description
granules array<object> (required) List of granule objects

Output

Output object fields:

field name type default description
granules array<object> N/A List 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.

Dependents (0)

Package Sidebar

Install

npm i @cumulus/move-granules

Weekly Downloads

57

Version

18.2.0

License

Apache-2.0

Unpacked Size

38.5 MB

Total Files

19

Last publish

Collaborators

  • cumuluspublisher
  • nsidc_kovarik
  • jennyhliu
  • npauzenga