Docs
whoami
Who your calls run as: dormeto aws whoami as the manager sees you, dormeto gcp whoami in a Google Cloud project.
1 min read
whoami

dormeto aws
Shows the caller the manager sees, its role, and the manager that answered.
dormeto aws whoami
No option of its own.
dormeto aws whoami
Table
arn arn:aws:sts::111122223333:assumed-role/ops/ci
role admin
manager 0.24.0
api url https://abc123.execute-api.eu-west-1.amazonaws.com
env prod
region eu-west-1
JSON
{
"me": {
"email": "arn:aws:sts::111122223333:assumed-role/ops/ci",
"groups": [],
"role": "admin",
"effectiveRole": "admin",
"grants": []
},
"version": "0.24.0",
"apiUrl": "https://abc123.execute-api.eu-west-1.amazonaws.com"
}
- It names the environment and the region it found the manager by, but with
--api-url. - Run it first: it checks the profile and its permission.
dormeto gcp
Shows the Google account your calls run as, and the project it reaches.
dormeto gcp whoami --project <project> [--gcloud-configuration <name>] [--json]
No option of its own.
dormeto gcp whoami --project my-project
Table
account ops@example.com
configuration (active)
project my-project
number 123456789012
parent organization 42
JSON
{
"account": "ops@example.com",
"configuration": "(active)",
"project": {
"id": "my-project",
"number": "123456789012",
"parent": "organizations/42"
}
}
- It needs no permission beyond those
checktests.
| Message | Cause | Fix |
|---|---|---|
Project <id> is not visible to <account>: no role in it | Your account has no role in the project: exit 1. | Give the account a role in the project, or name another project. |