-
Notifications
You must be signed in to change notification settings - Fork 5
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
Working with Federation #3
Comments
That's a great point. I didn't test this with Federated AWS accounts because I don't have access to one. I suspect the fix shouldn't be too complicated, as quipucamayoc relies on boto3 for authentication. Based on a few search results (eg) it seems we would have to change the references to IAM clients to references to STS clients. EG, from this: iam_client = session.client('iam') To this: sts_client = session.client('sts') Similarly, we would need to change the line Cheers, |
I was able to get further but looks like there would be quite a few tweaks. I think this would be another issue. |
Your suggestion of using self.account_id = boto3.client('sts').get_caller_identity().get('Account') did work. As well as changing to sts_client = session.client('sts'). |
So you managed to get it to work? If so, can you share a copy of your .py file so I can add it to the next version? Thanks! |
This appears to not work with Federated AWS accounts. Is there anyway to work around that ?
An error occurred when calling the GetUser operation: Must specify userName when calling with non-User credentials.
I'm assuming it's looking for a local IAM user that does not exist.
The text was updated successfully, but these errors were encountered: