SplitGrantsGovXMLDB

command
v0.0.0-...-f36794c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package main compiles to an AWS Lambda handler binary that, when invoked, streams an XML file conforming to the OpportunityDetail-V1.0 schema documented by Grants.gov from a source S3 object identified by the S3:ObjectCreated:* invocation event payload. While reading the XML source data, each contained grant opportunity is split into an individual object that is conditionally uploaded to an S3 bucket identified by the GRANTS_PREPARED_DATA_BUCKET_NAME environment variable. The conditional upload criteria is based on the following:

  • If no object representing the source data is already present in the destination S3 bucket, then it is always uploaded.
  • If a destination object already, it will be replaced if the source data was updated more recently than the destination object's creation timestamp.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL