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

Allow aws-replicator to use a profile for multi-account references #10

Open
daveofthedogs opened this issue Apr 4, 2023 · 2 comments
Open
Assignees

Comments

@daveofthedogs
Copy link

For people with multiple aws accounts and a shared aws config/crfedentials file with multiple profiles, replicator does not take a profile name as a parameter for rthe boto3.session being created. Update code to allow for --profile/-p to pass into the session.

@whummer whummer self-assigned this Apr 11, 2023
@whummer
Copy link
Member

whummer commented Aug 7, 2023

Hi @daveofthedogs , thanks for reporting this issue, and apologies for the long delay here.

The replicator (proxy) extension is configured to use the standard resolution mechanism of the AWS credentials chain, implemented in boto3. You should be able to specify the environment variable AWS_PROFILE to point to a local profile - can you please give that a try?

We'd love to learn more about your use case - can you please share some details about the setup, and how you're planning to use the extension? Also, please feel free to reach out to us directly on Slack (slack.localstack.cloud) - happy to discuss your use case in more detail there.. Thanks!

@daveofthedogs
Copy link
Author

Hi. I missed the comment you added. I have multiple remote profiles, and I wanted to replicate ijnfra from one specific acocunt. It seems that replicator is using my default profile (account) rather than assuming the role of a remote account/profile. I believe I tried to use the AWS_PROFILE var to try to redirect the request properly, and it did not work; however, it has been a pretty long time since II have tried.

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

No branches or pull requests

2 participants