Difference between revisions of "Terraform AWS provider: assume role property"
Jump to navigation
Jump to search
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html | https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html | ||
− | [[Terraform provider]] [[Terraform AWS | + | [[Terraform provider]] [[Terraform provider: AWS|AWS]]: |
− | provider "aws" { | + | [[Terraform provider: AWS|provider "aws"]] { |
region = var.region | region = var.region | ||
version = ">= 0.13" | version = ">= 0.13" | ||
assume_role { | assume_role { | ||
− | role_arn = " | + | [[role_arn]] = "arn:aws:iam::01234567890:[[role/]]role_in_account_b" |
} | } | ||
} | } | ||
+ | == Related == | ||
+ | * [[ExternalId]] | ||
+ | * [[AWS policies]] | ||
+ | |||
+ | == 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 == | == See also == | ||
+ | * {{aws sts}} | ||
* {{STS}} | * {{STS}} | ||
+ | * {{tf aws}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 16:37, 10 October 2024
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" } }
Related[edit]
Activities[edit]
- 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[edit]
- AWS STS
(sts:)
,aws sts
[get-session-token
|get-caller-identity
|assume-role | assume-role-with-web-identity | assume-role-with-saml | get-access-key-info ]
- STS, AWS Security Token Service (STS),
aws sts
, Terraform AWS provider:assume_role
- Terraform AWS: provider, resources, modules, data sources, VPC, IAM, Net, EC2, S3, Route53, ACM, CloudWatch, SES, RDS, ECS,
awscc, autoscaling, EKS
Advertising: