■
Chapter3
AWSの試運転
AWSのS3(無料で可)内に格納領域(バケット)を作成、以下のコマンドを出力
$ bucketName="mybucket-$(openss1 rand -hex 12)" $ echo $bucketName $ aws s3 mb "s3://${bucketname}" ←バケットの生成
(bucketnameは変数としての使用)
$ aws s3 ls
で作成したバケットの存在を確認
バケット内にファイルをアップデートするために
$ echo "Hello world" > hello_world.txt $ aws s3 cp hello_world.txt "s3://${bucketname}/hello_world.txt"
を実行
先程と同様にlsを使用してファイルの存在を確認
$ aws s3 rb "s3://${bucketname}" --force