@cumulus/move-granules

    9.5.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) 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.

    Keywords

    none

    Install

    npm i @cumulus/move-granules

    DownloadsWeekly Downloads

    159

    Version

    9.5.0

    License

    Apache-2.0

    Unpacked Size

    14.9 MB

    Total Files

    14

    Last publish

    Collaborators

    • mboyd
    • aortega527
    • cumuluspublisher
    • lfrederick
    • nemreid
    • kkelly51
    • nsidc_kovarik
    • flamingbear
    • jennyhliu
    • npauzenga
    • dopeters