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

View file

@ -21,8 +21,8 @@ type output interface {
func init() {
distro.Register("fedora-30", &Fedora30{
outputs: map[string]output {
"ami": &amiOutput{},
outputs: map[string]output{
"ami": &amiOutput{},
"ext4-filesystem": &ext4Output{},
"live-iso": &liveIsoOutput{},
"partitioned-disk": &diskOutput{},