0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS SSOでTerraformを実行するために

Posted at

手順

1. Terraform の設定ファイル(main.tf)に下記の設定を記載する

provider "aws" {
  region  = "ap-northeast-1" # 東京リージョン
  profile = "your-sso-profile-name"
}

2. 下記コマンドを実行し、必要な情報を入力する

aws configure sso

すると ~/.aws/config に下記のようなSSOプロファイルが追加される

設定例
[profile my-sso-profile]
sso_start_url = https://your-sso-url.awsapps.com/start
sso_region = ap-northeast-1
sso_account_id = 123456789012
sso_role_name = AdministratorAccess
region = ap-northeast-1
output = json
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?