0
2

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 3 years have passed since last update.

AWS CloudFormationを動かすためのAWS CLIの設定

Last updated at Posted at 2020-10-27

はじめに

AWS CloudFormationを動かすための事前準備として、AWS CLIの設定が必要です。

設定方法

  • Amazon Linux 2
    ※デフォルトでAWS CLIが利用できます。

    1. AdministratorAccessポリシー関連付けたIAMロールを作成し、EC2インスタンスにアタッチします。
    2. ~/.bashrcにexport AWS_DEFAULT_REGION=ap-northeast-1を追記します。
    3. source ~/.bashrcを実行してください。
  • Mac

  1. brew install awscliを実行し、AWS CLIをインストールします。

  2. IAMユーザーを作成し、アクセスキーとシークレットキーを発行しましす。

  3. aws configureを実行します。

    ターミナル

$ aws configure
AWS Access Key ID [None]: {アクセスキー}
AWS Secret Access Key [None]: {シークレットアクセスキー}
Default region name [None]: ap-northeast-1
Default output format [None]: json

0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?