AWS Product Sender

« Back to sending

The AWS product sender uploads product contents to a S3 bucket and then sends product metadata (properties, links, etc.) to a HTTP REST endpoint. The server validates the uploaded contents and moves them to a permanent storage location for persistence.

connectTimeout
The duration (in milliseconds) to wait when establishing a connect to the url
Default: 5000
maxPayloadBytes
The maximum size (in Bytes) of the product json that can be sent.
This does not include file content, but does include metadata about the file based content.
Default: 131072
privateKey
The private key to use when signing products
readTimeout
The duration (in milliseconds) to wait when reading responses from the url
Default: 30000
secretName
The name of the secret containing the private key.
Ignored when providing a privateKey, requires a secretResolver
secretResolver
A reference to a named configuration sub-section defining a secret resolver to use to resolve the private key value from a managed secret.
signProducts
Boolean flag whether to sign (possibly re-sign) products before sending
Requires a private key be configured either using a privateKey or secretName configuration property.
Default: false
url
The URL to connect to when sending products using this sender.

Example configuration

1
2
3
4
5
6
7
senders = sender_aws

[sender_aws]
type = gov.usgs.earthquake.aws.AwsProductSender
url = https://earthquake.usgs.gov/pdl/east/
privateKey = ./product-key
signProducts = true

The PDL Client product builder initially signs products using the global privateKeyFile (CLI: --privateKey) and signatureVersion (CLI: --signatureVersion) properties. The AWS product sender may re-sign products before being sent to an AWS product receiver using the configuration sub-section properties for the sender. When products are re-signed, the original signature and signature version values are moved to original-signature and original-signature-version properties on the product.



Last modified: Tue Sep 3 18:12:07 UTC 2024