LoginSignup
3
0

More than 5 years have passed since last update.

Assume role を使った認証をTerraformで利用する。

Posted at

Assume role を用いた認証をTerraformで利用する際のメモ書き

main.tf
# Provider
provider "aws" {
  access_key = "AWSのアクセスキー"
  secret_key = "AWSのシークレットキー"
  region     = "リージョン"
  assume_role {
    role_arn     = "arn:aws:iam::123456789:role/mochida.mochio"
    # 実行先アカウントのIAM Role を記載する
  }
}

参考

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