facebook twitter hatena line email

「Aws/cil」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ページの作成:「**aws_cliとは awsをコマンドで処理できるツールです。 **はじめに aws configure **help処理 aws --help Unable to locate credentials. You can con...」)
 
(s3のsyncの転送ファイルチェック(dryrun))
 
(同じ利用者による、間の14版が非表示)
行1: 行1:
**aws_cliとは
+
==aws_cliとは==
 
awsをコマンドで処理できるツールです。
 
awsをコマンドで処理できるツールです。
  
**はじめに
+
==まずはユーザキー作成==
aws configure
+
[[aws/IAM]] [ショートカット]
  
**help処理
+
==キー認証==
  aws --help
+
IAMで作成したアクセスキーなどを入力
 +
  $ aws configure
 +
AWS Access Key ID [None]: xxxxxxxx
 +
AWS Secret Access Key [None]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 +
Default region name [None]: ap-northeast-1
 +
Default output format [None]: json
 +
 
 +
==help表示==
 +
$ aws help
 +
 
 +
==以下エラーが出た時==
 
  Unable to locate credentials. You can configure credentials by running "aws configure".
 
  Unable to locate credentials. You can configure credentials by running "aws configure".
が出た場合は以下を実行
+
上のエラーが出た場合は以下を実行
 
  aws configure
 
  aws configure
 +
 +
==s3のオブジェクト一覧表示==
 +
$ aws s3 ls s3://bucket1/
 +
 +
==s3のsyncの転送ファイルチェック(dryrun)(削除同期)==
 +
$ aws s3 sync /var/www/html/sitemap s3://bucket1/sitemap --dryrun --delete
 +
 +
==s3のsyncの転送ファイル実行(削除同期)==
 +
$ aws s3 sync /var/www/html/sitemap s3://bucket1/sitemap --delete

2015年7月4日 (土) 21:06時点における最新版

aws_cliとは

awsをコマンドで処理できるツールです。

まずはユーザキー作成

aws/IAM [ショートカット]

キー認証

IAMで作成したアクセスキーなどを入力

$ aws configure
AWS Access Key ID [None]: xxxxxxxx
AWS Secret Access Key [None]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Default region name [None]: ap-northeast-1
Default output format [None]: json

help表示

$ aws help

以下エラーが出た時

Unable to locate credentials. You can configure credentials by running "aws configure".

上のエラーが出た場合は以下を実行

aws configure

s3のオブジェクト一覧表示

$ aws s3 ls s3://bucket1/

s3のsyncの転送ファイルチェック(dryrun)(削除同期)

$ aws s3 sync /var/www/html/sitemap s3://bucket1/sitemap --dryrun --delete

s3のsyncの転送ファイル実行(削除同期)

$ aws s3 sync /var/www/html/sitemap s3://bucket1/sitemap --delete