Continuously polls a file in S3 that contains a list of Upstream Service Objects. If the
file is invalid, the S3UpstreamWatcher
treats it as if there was no update.
// Domain Object
{
upstream-watcher: S3UpstreamWatcher
s3-upstream-watcher {
// The bucket name that contains the config file
bucket-name: "s3-upstreams-bucket-name"
// The key within the bucket to the config file.
config-filename: "domains.conf"
// The duration between polling for file updates
refresh-interval: 30s
}
}
[
// Upstream Service Objects
{...},
{...}
]
Shield uses the AWS Java SDK for communicating with AWS Services. See the documentation on how to set up Shield with AWS Credentials.