Skip to content

maorfr/s3-reload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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://hub.docker.com/r/maorfr/s3-reload

Uses maorfr/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.

About

Simple binary to trigger a reload when an object in an S3 bucket is updated

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.5%
  • Dockerfile 2.5%