Skip to content

Refactor AWS session creation with profile support#53

Open
alberttwong wants to merge 3 commits intoRedislabs-Solution-Architects:mainfrom
alberttwong:main
Open

Refactor AWS session creation with profile support#53
alberttwong wants to merge 3 commits intoRedislabs-Solution-Architects:mainfrom
alberttwong:main

Conversation

@alberttwong
Copy link
Copy Markdown

No description provided.

Refactor AWS session creation with profile support
Add mock STS client to test cases for AWS services.
identity = sts.get_caller_identity()
print(f"Using AWS identity: {identity['Arn']}")

print(f"Requesting information for the {section} nodes")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is duplicated down below

aws_session_token = None

# Create session with credentials
session = boto3.Session(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't this remove the ability to authenticate using access keys directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants