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

Error: Unable to assume AWS role #29

Closed
Panzy08 opened this issue Jun 12, 2024 · 0 comments · Fixed by #40
Closed

Error: Unable to assume AWS role #29

Panzy08 opened this issue Jun 12, 2024 · 0 comments · Fixed by #40
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Panzy08
Copy link

Panzy08 commented Jun 12, 2024

Error: Unable to assume AWS role arn:aws:iam::123456789:role using SAML

Expected Behavior
if AWS_Endpoint_URL variable is configured in environment variables for localstack or some other application , it should not consider it

System.InvalidOperationException: Unable to assume AWS role
arn:aws:iam::123456789:role using SAML
System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it.
(localhost:4566)
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused
it.
at void System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError ,
CancellationToken )
at void
System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.
GetResult(short )
at async ValueTask System.Net.Sockets.Socket.g__WaitForConnectWithCancellation|285_0(
AwaitableSocketAsyncEventArgs , ValueTask , CancellationToken )
at async ValueTask System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(string , int ,
HttpRequestMessage , bool , CancellationToken )
at async ValueTask System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(string , int ,
HttpRequestMessage , bool , CancellationToken )
at async ValueTask<ValueTuple<Stream, TransportContext, IPEndPoint>> System.Net.Http.HttpConnectionPool.
ConnectAsync(HttpRequestMessage , bool , CancellationToken )
at async ValueTask System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(
HttpRequestMessage , bool , CancellationToken )
at async Task System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem )
at async ValueTask System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync( CancellationToken ) at async ValueTask<HttpResponseMessage> System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync( HttpRequestMessage , bool , bool , CancellationToken ) at async ValueTask<HttpResponseMessage> System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage , bool , CancellationToken ) at async Task<HttpResponseMessage> System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage , HttpCompletionOption , CancellationTokenSource , bool , CancellationTokenSource , CancellationToken ) at async Task<IWebResponseData> Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken ) at async Task<T> Amazon.Runtime.Internal.HttpHandler1.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.Unmarshaller.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.ErrorHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.ErrorHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.CallbackHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.Signer.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.RetryHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.RetryHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.CallbackHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.CallbackHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync(IExecutionContext )
at async Task Amazon.Runtime.Internal.MetricsHandler.InvokeAsync(IExecutionContext )
at async Task Ellosoft.AwsCredentialsManager.Services.AWS.AwsCredentialsService.
GetAwsCredentials(string , string , string , int )
at async Task Ellosoft.AwsCredentialsManager.Services.AWS.AwsCredentialsService.GetAwsCredentials(
string , string , string , int )
at async Task Ellosoft.AwsCredentialsManager.Services.AWS.Interactive.AwsOktaSessionManager.
CreateSessionAsync(string , string , CredentialsConfiguration )
at async Task Ellosoft.AwsCredentialsManager.Services.AWS.Interactive.AwsOktaSessionManager.
CreateOrResumeSessionAsync(string , string )
at async Task Ellosoft.AwsCredentialsManager.Commands.RDS.GetRdsPassword.GenerateDbPassword(string , string , int? ,
string , string , int )
at async Task Ellosoft.AwsCredentialsManager.Commands.RDS.GetRdsPassword.ExecuteAsync(CommandContext , Settings )
at async Task Spectre.Console.Cli.CommandExecutor.Execute(IConfiguration , IEnumerable ) in
//src/Spectre.Console.Cli/Internal/CommandExecutor.cs:83
at async Task Spectre.Console.Cli.CommandApp.RunAsync(IEnumerable ) in /
/src/Spectre.Console.Cli/
CommandApp.cs:84
at int Spectre.Console.Cli.CommandApp.Run(IEnumerable ) in /_/src/Spectre.Console.Cli/CommandApp.cs:58
at async Task Program.

$(string[] )

@Panzy08 Panzy08 added the bug Something isn't working label Jun 12, 2024
@vgmello vgmello added this to the 0.0.3 milestone Aug 7, 2024
@vgmello vgmello mentioned this issue Aug 19, 2024
vgmello added a commit that referenced this issue Aug 19, 2024
## New features

- Automatic HTTPS prefix on Okta Domain during Okta Setup
- Automatic copy RDS pwd to clipboard (#36)
- MacOS Support  (#35)
- New Open Logs Command (#39)

## Bug Fixes

- Error: Unable to assume AWS role bug (#29)
- Error message for incorrect configuration is not a user-friendly bug
(#38)
- Unable to retrieve OKTA apps automatically bug (#37)
- Improves Push MFA, challenge message
vgmello added a commit that referenced this issue Aug 19, 2024
## New features

- Automatic HTTPS prefix on Okta Domain during Okta Setup
- Automatic copy RDS pwd to clipboard (#36)
- MacOS Support  (#35)
- New Open Logs Command (#39)

## Bug Fixes

- Error: Unable to assume AWS role bug (#29)
- Error message for incorrect configuration is not a user-friendly bug
(#38)
- Unable to retrieve OKTA apps automatically bug (#37)
- Improves Push MFA, challenge message
vgmello added a commit that referenced this issue Aug 27, 2024
## New features

- Automatic HTTPS prefix on Okta Domain during Okta Setup
- Automatic copy RDS pwd to clipboard (#36)
- MacOS Support  (#35)
- New Open Logs Command (#39)

## Bug Fixes

- Error: Unable to assume AWS role bug (#29)
- Error message for incorrect configuration is not a user-friendly bug
(#38)
- Unable to retrieve OKTA apps automatically bug (#37)
- Improves Push MFA, challenge message
@vgmello vgmello linked a pull request Aug 27, 2024 that will close this issue
@vgmello vgmello closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants