Example
To use the AWS Helper, call thegenerate_aws_sts_token method with your AWS credentials and region details.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
generate_aws_sts_token method with your AWS credentials and region details.
import os
from helpers.aws_helper import generate_aws_sts_token
# Generate temporary STS token
sts_credentials = generate_aws_sts_token(
region_name="us-east-1",
aws_access_key_id=os.getenv("AWS_ACCESS_KEY_ID"),
aws_secret_access_key=os.getenv("AWS_SECRET_ACCESS_KEY"),
duration_seconds=3600 # 1 hour
)
print(sts_credentials)
