aws.sts.get_caller_identity
Example SQL Queries
SELECT * FROMaws.sts.get_caller_identity;Description
Returns details about the IAM user or role whose credentials are used to call the operation.
No permissions are required to perform this operation. If an administrator attaches a policy to your identity that explicitly denies access to the sts:GetCallerIdentity action, you can still perform this operation. Permissions are not required because the same information is returned when access is denied. To view an example response, see I Am Not Authorized to Perform: iam:DeleteVirtualMFADevice in the IAM User Guide.
Table Definition
| Column Name | Column Data Type |
|---|---|
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| account The Amazon Web Services account ID number of the account that owns or contains the calling entity. | VARCHAR |
| arn The Amazon Web Services ARN associated with the calling entity. | VARCHAR |
| user_id The unique identifier of the calling entity. The exact value depends on the type of entity that is making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide. | VARCHAR |