Skip to content

Instantly share code, notes, and snippets.

@ohlol
Created November 7, 2021 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohlol/655f08b2b79a56b6f622582afd43d494 to your computer and use it in GitHub Desktop.
Save ohlol/655f08b2b79a56b6f622582afd43d494 to your computer and use it in GitHub Desktop.
From instance:
```
ubuntu@i-029e0b96605be9113:~$ aws sts get-caller-identity
{
"UserId": "[redacted]:i-029e0b96605be9113",
"Account": "[redacted]",
"Arn": "arn:aws:sts::[redacted]:assumed-role/[redacted]/i-029e0b96605be9113"
}
ubuntu@i-029e0b96605be9113:~$
```
From container:
```
ubuntu@i-029e0b96605be9113:~$ docker run -it --rm --entrypoint bash ghcr.io/hatchcredit/pulumi:main
ubuntu@7f1f55029cf3:/app/projects$ aws sts get-caller-identity
{
"UserId": "[redacted]:i-029e0b96605be9113",
"Account": "[redacted]",
"Arn": "arn:aws:sts::[redacted]:assumed-role/[redacted]/i-029e0b96605be9113"
}
ubuntu@7f1f55029cf3:/app/projects$
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment