Created
March 3, 2025 20:31
-
-
Save joshfinley/e49a5332e7e5e98fd8262327f07a2300 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
import boto3 | |
def lambda_handler(event, context): | |
session = boto3.Session() | |
credentials = session.get_credentials().get_frozen_credentials() | |
print("Access Key:", credentials.access_key) | |
print("Secret Key:", credentials.secret_key) | |
print("Session Token:", credentials.token) | |
return { | |
"AccessKey": credentials.access_key, | |
"SecretKey": credentials.secret_key, | |
"SessionToken": credentials.token | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment