upload/aws: add a sample AWS upload client

This commandline tools uploads a file to S3, as a proof of concept.

All options are mandatory. Credentials are only read from the
commandline and not from the environment or configuration files.

The next step is to add support for importing from S3 to EC2,
currently the images we produce cannot be imported as-is, so this
requires more research.

To try this out: create an S3 bucket, get your credentials and
call the tool, passing any value as `key`. Note that if the key
already exists, it will be overwritten.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-11-19 16:08:49 +01:00 committed by Lars Karlitski
parent 78ea0e0b6f
commit 7f5c869cd2
6 changed files with 217 additions and 2 deletions

1
go.mod
View file

@ -3,6 +3,7 @@ module github.com/osbuild/osbuild-composer
go 1.12
require (
github.com/aws/aws-sdk-go v1.25.37
github.com/Azure/azure-storage-blob-go v0.8.0
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f
github.com/gobwas/glob v0.2.3