Skip to content

Commit

Permalink
aws: Update docs after #6385 (account ID via sts)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed May 5, 2016
1 parent 069636a commit 24f967d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions website/source/docs/providers/aws/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@ Approaches differ per auth providers:
will try two approaches in the following order
* `iam:GetUser` - typically useful for IAM Users. It also means
that each user needs to be privileged to call `iam:GetUser` for themselves.
* `sts:GetCallerIdentity` - _Should_ work for both IAM Users and federated IAM Roles,
introduced in Terraform `0.6.16`.
* `iam:ListRoles` - this is specifically useful for IdP-federated profiles
which cannot use `iam:GetUser`. It also means that each federated user
need to be _assuming_ an IAM role which allows `iam:ListRoles`.
There is currently no better clean way to get account ID
out of the API when using federated account unfortunately.
Used in Terraform `0.6.16+`.
There used to be no better way to get account ID out of the API
when using federated account until `sts:GetCallerIdentity` was introduced.

0 comments on commit 24f967d

Please sign in to comment.