A simple webservice simply returns the sts caller identity
483
A simple webservice simply returns the sts caller identity
docker run -v $HOME/.aws:/root/.aws -p 5000:5000 pahud/aws-whoami:latest
Response
* Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Open another terminal and cURL it
curl -s 0:5000 | jq -r
{
"Account": "112233445566",
"Arn": "arn:aws:iam::112233445566:user/pahud",
"ResponseMetadata": {
"HTTPHeaders": {
"content-length": "402",
"content-type": "text/xml",
"date": "Thu, 21 May 2020 03:00:39 GMT",
"x-amzn-requestid": "36c0da1e-483b-4d88-a603-af3e04900af4"
},
"HTTPStatusCode": 200,
"RequestId": "36c0da1e-483b-4d88-a603-af3e04900af4",
"RetryAttempts": 0
},
"UserId": "AIDAJVHX3XBRH4E4UGWWK"
}
Content type
Image
Digest
Size
44.2 MB
Last updated
over 6 years ago
docker pull pahud/aws-whoami