@cumulus/move-granules

Move granule files from staging to final location

Stats

StarsIssuesVersionUpdatedCreatedSize
@cumulus/move-granules
175139.6.05 days ago3 years agoMinified + gzip package size for @cumulus/move-granules in KB

Readme

@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) Bucket with public/private key for decrypting CMR password
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.

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.