Skip to content

Improve AWS credential handling to support EC2 instance profiles #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

doronbl
Copy link

@doronbl doronbl commented May 1, 2025

Amazon Bedrock Agent Samples Pull Request

Instructions

  • Do not erase any parts of this template that are not applicable to your pull request.
  • If a section is not applicable, explicitly state the reason.
    • Tick the checkboxes for the items you have completed.
  • These are mandatory requirements, not mere suggestions.

Describe your changes

  • [ x] Concise description of the PR
Changes to src/InlineAgent/agent/inline_agent.py because it is expecting local AWS profile and fails when running from an EC2 instance. This change should allow developers to run their code from cloud desktop, and run the 'production' code from an EC2 instance executing the InlineAgent in an EC2 instance.

Issue ticket number and link

  • Issue # (if applicable)

All Submissions:

  • [ x] Have you followed the guidelines in our Contributing document?
  • [x ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Are you uploading a dataset?
  • Have you added contributions to RELEASE NOTES?

New Example Submissions:

  • [x ] Have you tested your code, and made sure the functionality runs successfully? Provide screenshots.
  • Have you linted your Python code with black?
  • Does this implementation use the shared tools src/utils/*. List them here:
Not applicable - this is an extension of existing code, not a new example.
  • Does this implementation use the helper functions src/utils/*. List them here:
Not applicable - this is an extension of existing code, not a new example.

src/utils Submissions:

Changes to the utils folder won't be accepted. Instead, open a new issue.


src/shared tool Submissions:

Changes to existing tools won't be accepted. Instead, open a new issue.

  • Business justification for including a new tool
Not applicable - this is an extension of existing code, not a new tool.
  • How is this tool implemented?
      • AWS CDK
      • AWS CloudFormation (recommended)

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.

1 participant