s3-reload

command module
v0.0.0-...-b3b2f9f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

S3 Reload

s3-reload is a simple binary to trigger a reload when an object in an S3 bucket is updated. It watches the object in the defined path in an S3 bucket and notifies the target process that the object has been changed. It currently only supports sending an HTTP request.

It is available as a Docker image at https://quay.io/repository/app-sre/s3-reload

Uses app-sre/csnotify under the hood.

Inspired by jimmidyson/configmap-reload.

Usage
Usage of ./out/s3-reload:
  -s3-path string
        S3 object path to watch for updates; may be used multiple times (example: s3://my-bucket/path/to/watch)
  -webhook-method string
        the HTTP method url to use to send the webhook (default "POST")
  -webhook-status-code int
        the HTTP status code indicating successful triggering of reload (default 200)
  -webhook-url string
        the url to send a request to when the object in the specified S3 path has been updated
License

This project is Apache Licensed

Credentials
AWS

s3-reload uses the default AWS credentials chain. In addition, the AWS_REGION environment variable should be set.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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