0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

S3署名方式をSigV2からSigV4に

Last updated at Posted at 2019-05-16

2019年6月24日にS3への署名方式をSigV4にしていないと、アクセスできなくなるというまずい状況になるため、早急にアップデートしたときのメモ

AWS CLIとpythonのboto3使っていたので、boto3もアップグレード

アップデート前環境

・python 2.7.12
・Amazon Linux AMI release 2016.09

-root
boto (2.42.0)
boto3 (1.4.0)
botocore (1.4.81)

-vertualenv
boto (2.42.0)
boto3 (1.4.0)
botocore (1.4.81)

・aws cli
aws-cli/1.11.17 Python/2.7.12 Linux/4.4.30-32.54.amzn1.x86_64 botocore/1.4.74

アップデート

適宜バージョン指定を変えて実施する

・アップデートコマンド

pip install --upgrade awscli==1.16.137
pip install --upgrade boto3==1.9.127

・ダウングレードコマンド

pip uninstall awscli
pip uninstall boto3
pip install awscli==1.11.17
pip install boto3==1.4.0

・確認コマンド

pip list | grep "boto"
aws --version

アップデート後環境

-root
boto (2.42.0)
boto3 (1.9.127)
botocore (1.12.127)

-vertualenv
boto (2.42.0)
boto3 (1.9.127)
botocore (1.12.127)

・aws cli
aws-cli/1.16.137 Python/2.7.12 Linux/4.4.30-32.54.amzn1.x86_64 botocore/1.12.127

これで一見落着!!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?