Skip to content
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

Add support for role assumption (delegated access). #13

Merged
merged 5 commits into from
Feb 25, 2024
Merged

Add support for role assumption (delegated access). #13

merged 5 commits into from
Feb 25, 2024

Conversation

amrith
Copy link
Contributor

@amrith amrith commented Feb 22, 2024

This addresses the [issue][https://github.com//issues/12].

Description of changes:

When a user specifies the environment variable AWS_DEFAULT_PROFILE and uses that to specify role assumption, the SDK doesn't (by default) honor it. This was reported in the issue above. The reason for this is in the AWS CPP SDK as described [here][https://github.com/aws/aws-sdk-cpp/issues/150].

Changes proposed here are derived from the changes proposed [here][https://github.com/aws/aws-sdk-cpp/issues/150#issuecomment-416646025] but required changes to make them work.

Substantively, this pull requests includes the following changes:

  1. Connections now respect the AWS_DEFAULT_PROFILE environment variable.
  2. Tests have been amended to include a number of tests with role assumption.
  3. The README.md file has been updated with build instructions and how one can use role assumption.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Amrith Kumar and others added 2 commits June 5, 2023 15:24
This change adds support in ddbsh to properly handle AWS_DEFAULT_PROFILE environment variable. By default, the C++ SDK doesn't appear to handle this as described in the issue (#12). This appears to be related to AWS SDK issue (aws/aws-sdk-cpp#150).

Sample code provided in that issue provided a starting point for the change, but it required some fixing.

Added tests and updated the README.md. The changes to README.md include changes to the build steps, and how to use delegated access (role assumption).
@amrith
Copy link
Contributor Author

amrith commented Feb 22, 2024

The version number has been bumped to 0.7.0.

AWS_REGION deprecates AWS_DEFAULT_REGION.
AWS_PROFILE deprecates AWS_DEFAULT_PROFILE.
@amrith
Copy link
Contributor Author

amrith commented Feb 24, 2024

Updated to accept the "profile" prefix in the config profile section.

AWS_PROFILE deprecates AWS_DEFAULT_PROFILE
AWS_REGION deprecates AWS_DEFAULT_REGION

@amrith
Copy link
Contributor Author

amrith commented Feb 24, 2024

Updated README.md with information about malformed config profile section(s).

@amrith
Copy link
Contributor Author

amrith commented Feb 25, 2024

looks good. Thanks @damshenas

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.

Connection Failed. MissingAuthenticationTokenException
1 participant