Difference between revisions of "Terraform AWS provider: assume role property"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
version = ">= 0.13" | version = ">= 0.13" | ||
assume_role { | assume_role { | ||
− | [[role_arn]] = " | + | [[role_arn]] = "arn:aws:iam::01234567890:[[role/]]role_in_account_b" |
} | } | ||
} | } |
Revision as of 06:12, 15 September 2022
https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html
provider "aws" { region = var.region version = ">= 0.13" assume_role { role_arn = "arn:aws:iam::01234567890:role/role_in_account_b" } }
Activities
- Read: https://support.hashicorp.com/hc/en-us/articles/360041289933-Using-AWS-AssumeRole-with-the-AWS-Terraform-Provider
- Read: https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html
See also
Advertising: