@cumulus/common
Advanced tools
Changelog
[v7.2.0] 2021-03-23
@cumulus/api
to get recovery statusCopyToGlacier
step to example IngestAndPublishGranuleWithOrca workflowaddShortnameAndVersionIdToConceptId
field has been added to the config inputs of the hyrax-metadata-updates
taskChangelog
[v7.1.0] 2021-03-12
sync-granule
task will now properly handle syncing 0 byte files to S3rule.queueUrl
property. If provided, this value should be the full URL for an SQS queue.tf-modules/cumulus
module now supports a cmr_custom_host
variable that can
be used to set to an arbitrary host for making CMR requests (e.g.
https://custom-cmr-host.com
).buckets
variable to tf-modules/archive
example/cumulus-tf/orca.tf
and example/cumulus-tf/terraform.tfvars.example
CopyToGlacier
step to example IngestAndPublishGranule workflowchildWorkflowMeta
to queue-pdrs
config. An object passed to this config value will be merged into a child workflow message's meta
object. For an example of how this can be used, see example/cumulus-tf/discover_and_queue_pdrs_with_child_workflow_meta_workflow.asl.json
.rule.queueUrl
property will be used to schedule workflows for that rule. This change allows SQS/Kinesis rules to use any throttled queues defined for a deployment.workflow_start_time
against
the createdAt
field for each record to ensure old records do not
overwrite newer ones<prefix>-lambda-api-gateway
IAM role used by API Gateway Lambda now
supports accessing all buckets defined in your buckets
variable except
"internal" buckets/s3Credentials
endpoint based upon value for
environment variable DISABLE_S3_CREDENTIALS
. If set to "true", the
endpoint will not dispense S3 credentials and instead return a message
indicating that the endpoint has been disabled./elasticsearch
endpoint's reindex
function to prevent
reindexing when source and destination indices are the same.waitForAsyncOperationStatus
to take a retryObject
and use exponential backoff. Increased the total test duration for both
AsycOperation specs and the ReconciliationReports tests.queueUrl
from the parameters object for @cumulus/message/Build.buildQueueMessageFromTemplate
queueUrl
from the parameters object for @cumulus/message/Build.buildCumulusMeta
@cumulus/ingest/S3ProviderClient.sync()
preventing 0 byte files from being synced to S3.tf-modules/archive
:
private_buckets
protected_buckets
public_buckets
Changelog
[v7.0.0] 2021-02-22
example/cumulus-tf/orca.tf
and example/cumulus-tf/terraform.tfvars.example
CopyToGlacier
step to example IngestAndPublishGranule workflowcmrRevisionId
as an optional parameter to post-to-cmr
that will be used when publishing metadata to CMR.getCollectionsByShortNameAndVersion
to @cumulus/cmrjs that performs a compound query to CMR to retrieve collection information on a list of collections. This replaces a series of calls to the CMR for each collection with a single call on the /collections
endpoint and should improve performance when CMR return times are increased.publishUMMGJSON2CMR
to take in an optional revisionId
parameter.publishUMMGJSON2CMR
to throw an error if optional revisionId
does not match resulting revision ID.publishECHO10XML2CMR
to take in an optional revisionId
parameter.publishECHO10XML2CMR
to throw an error if optional revisionId
does not match resulting revision ID.publish2CMR
to take in optional cmrRevisionId
.getWriteHeaders
to take in an optional CMR Revision ID.ingestGranule
to take in an optional CMR Revision ID to pass to getWriteHeaders
.ingestUMMGranule
to take in an optional CMR Revision ID to pass to getWriteHeaders
./s3credentialsREADME
, to include Python and
JavaScript code demonstrating how to refrsh the s3credential for
programatic access.500
status is returned from CMRChangelog
[v6.0.0] 2021-02-16
CUMULUS-2255 - Cumulus has upgraded its supported version of Terraform from 0.12.12 to 0.13.6. Please see the instructions to upgrade your deployments.
CUMULUS-2350
/s3credentialsREADME
, does not appear to be working after
deployment, manual redeployment
of the API-gateway stage may be necessary to finish the deployment.childWorkflowMeta
to queue-granules
config. Object passed to this
value will be merged into a child workflow message's meta
object. For an
example of how this can be used, see
example/cumulus-tf/discover_granules_workflow.asl.json
./s3credentialsREADME
, to the
s3-credentials-endpoint that displays information on how to use the
/s3credentials
endpointecs_custom_sg_ids
to Cumulus module to allow for
custom security group mappingssftp()
for use in @cumulus/sftp-client
CUMULUS-2323
source_bucket
key in granule.files
objects. If incoming payloads using
this task have a source_bucket
value for a file using the s3 provider, the
task will attempt to sync from the bucket defined in the file's
source_bucket
key instead of the provider
.
S3ProviderClient.sync
to allow for an optional bucket parameter
in support of the changed behavior.addBucketToFile
and related code from sync-granules taskCUMULUS-2255
CUMULUS-2321
/reconciliationReports/{name}
to return the
presigned s3 URL in addition to report dataUpdated hyrax-metadata-updates
task so the opendap url has Type 'USE SERVICE API'
CUMULUS-2310
CUMULUS-2351
Changelog
[v5.0.1] 2021-01-27
CUMULUS-2344
CUMULUS-2351
execution_cumulus_id
column from granules RDS schema and data typeChangelog
[v5.0.0] 2021-01-12
egress_lambda_log_group
and
egress_lambda_log_subscription_filter
resource were removed from the
cumulus
module, new definitions for these resources must be added to
cumulus-tf/main.tf
. For reference on how to define these resources, see
example/cumulus-tf/thin_egress_app.tf
.tea_stack_name
variable being passed into the cumulus
module should be removedasync_operation_image
as cumulus
module variable to allow for override of the async_operation container image. Users can optionally specify a non-default docker image for use with Core async operations.lzards-backup
Core task to facilitate making LZARDS backup requests in Cumulus ingest workflows@cumulus/hyrax-metadata-updates
Add component URI encoding for entry title id and granule ur to allow for values with special characters in them. For example, EntryTitleId 'Sentinel-6A MF/Jason-CS L2 Advanced Microwave Radiometer (AMR-C) NRT Geophysical Parameters' Now, URLs generated from such values will be encoded correctly and parsable by HyraxInTheCloudlzards-backup
Core task to facilitate making LZARDS backup requests in Cumulus ingest workflowsqueryFields
to granule schema, and this allows workflow tasks to add queryable data to granule record. For reference on how to add data to queryFields
field, see example/cumulus-tf/kinesis_trigger_test_workflow.tf
.async_operation_image
as cumulus
module variable to allow for override of the async_operation container image. Users can optionally specify a non-default docker image for use with Core async operations./search/granules.json
endpoint, now it is a direct link to /search/concepts/conceptid.format
parse-pdr
by updating @cumulus/pvl
to parse fields in a manner more consistent with the PDR ICD, with respect to numbers and dates. Anything not matching the ICD expectations, or incompatible with Javascript parsing, will be parsed as a string instead.tea_stack_name
variable from tf-modules/distribution/variables.tf
and tf-modules/cumulus/variables.tf
egress_lambda_log_group
and egress_lambda_log_subscription_filter
resources from tf-modules/distribution/main.tf
Changelog
[v4.0.0] 2020-11-20
cumulus_message_adapter_lambda_layer_arn
variable for the cumulus
module to cumulus_message_adapter_lambda_layer_version_arn
. The value of the variable should remain the same (a layer version ARN of a Lambda layer for the cumulus-message-adapter
.MoveGranules
step to add UpdateGranulesCmrMetadataFileLinksStep
that runs after it. See the example IngestAndPublishWorkflow
for reference.cumulus
module, a new resource definition for egress_api_gateway_log_subscription_filter
must be added to cumulus-tf/main.tf
. For reference on how to define this resource, see example/cumulus-tf/main.tf
.deploy_to_ngap
is false./collections[&getMMT=true]
and /collections/active[&getMMT=true]
endpoints. When a user provides a value of true
for getMMT
in the query parameters, the endpoint will search CMR and update each collection's results with new key MMTLink
containing a link to the MMT (Metadata Management Tool) if a CMR collection id is found.granules/bulkReingest
endpoint to @cumulus/api
log_api_gateway_to_cloudwatch
variable to example/cumulus-tf/variables.tf
.log_api_gateway_to_cloudwatch
variable to thin_egress_app
module definition./collection
and /collection/active
endpoints now return collections without granule aggregate statistics by default. The original behavior is preserved and can be found by including a query param of includeStats=true
on the request to the endpoint.es/collections
Collection class takes a new parameter includeStats. It no longer appends granule aggregate statistics to the returned results by default. One must set the new parameter to any non-false value.dbIndexer
lambda to process requests in serialtf-modules/distribution/main.tf
to example/cumulus-tf/main.tf
thin_egress_app
module output for a resource count.tea_api_egress_log_group
variable from tf-modules/distribution/variables.tf
and tf-modules/cumulus/variables.tf
.move-granules
task into a
new update-granules-cmr-metadata-file-links
task./collection
and /collection/active
endpoints now return collections without granule aggregate statistics by default. The original behavior is preserved and can be found by including a query param of includeStats=true
on the request to the endpoint. This is likely to affect the dashboard only but included here for the change of behavior.cumulus_message_adapter_lambda_layer_arn
output from the cumulus-message-adapter
module to cumulus_message_adapter_lambda_layer_version_arn
. The output value has changed from being the ARN of the Lambda layer without a version to the ARN of the Lambda layer with a version.cumulus
and ingest
modules from cumulus_message_adapter_lambda_layer_arn
to cumulus_message_adapter_lambda_layer_version_arn
Changelog
[v3.0.1] 2020-10-21
CUMULUS-2203
CUMULUS-2232
ajv
, lodash
, googleapis
, archiver
, and
@cumulus/aws-client
to remediate vulnerabilities found in SNYK scan.