How to set ExternalId when using AWSSDK.Extensions.NETCore.Setup #3286
Labels
Extensions
feature-request
A feature should be added or improved.
p2
This is a standard priority issue
queued
Discussed in #3284
Originally posted by douggish April 11, 2024
I'm using AWSSDK.Extensions.NETCore.Setup for configuration and need to assume a role in certain cases for cross-account access. I currently have code similar to the following to create a client that assumes a role:
However, I can't find how I can set the ExternalId to address the "confused deputy problem" documented here: https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html
I explored creating an AssumeRoleAWSCredentials instance manually (so I could set the AssumeRoleAWSCredentialsOptions myself) with the idea of setting the Credentials property of my AWSOptions object. However, the AssumeRoleAWSCredentials requires sourceCredentials, which I'm not sure how to get from my AWSOptions.
How can I assume a role with ExternalId set when using AWSSDK.Extensions.NETCore.Setup?
The text was updated successfully, but these errors were encountered: