How to change the authorization mechanism for AWS (ec2-upload-bundle)

I am currently trying to backup my EC2 instance using Amazon ec2-api utilities and ec2-ami-tools utilities.

I am using the standard Ubuntu 14.04 AMI from Amazon.

To download and install the necessary utilities, I updated /etc/apt/sources as follows:

 deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse 

Now I can stratify the image as expected, however, when I try to load AMI into a bucket, I get the following error:

 The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. 

I use the Frankfurt data center. From online research, it seems that the new centers in January 2014 do not support the old authentication schemes.

I tried following the manual http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html to enable V4, however, when I try to update the CLI configuration, I get the following error:

 root@ip-10-0-1-54 :/mnt/bundle# aws configure set default.s3.signature_version s3v4 usage: aws [options] <command> <subcommand> [parameters] aws: error: argument subcommand: Invalid choice, valid choices are: list 

Does anyone know how to fix errors there so that I can back up my package for S3?

+6
source share
1 answer

The ec2-ami-tools package in the Ubuntu 14.04 repository is deprecated. The version in the repository is only version 1.4.0. Frankfurt support was added only in version 1.5.6 . The new version of the tool should work in Frankfurt.

This tool is only needed if you plan to create an AMI with instance support. If your instance supports EBS and you need to do AMI, using AWS CLI will be much easier.

+1
source

Source: https://habr.com/ru/post/982178/


All Articles