Created
November 7, 2021 17:27
-
-
Save ohlol/655f08b2b79a56b6f622582afd43d494 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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