sudrao5555

sudrao5555

ex_aws_sts with AssumeRoleWebIdentityAdapter crashes due to looped call to ex_aws

This call: ExAws.SQS.get_queue_url(queue) |> ExAws.request(debug_requests: true)

results in this crash. Using ex_aws_sts, and ex_aws at version 2.2

config :ex_aws, access_key_id: [{:system, "AWS_ACCESS_KEY_ID"}, {:awscli, "default", 30}, :instance_role], secret_access_key: [{:system, "AWS_SECRET_ACCESS_KEY"}, {:awscli, "default", 30}, :instance_role], security_token: [{:system, "AWS_SESSION_TOKEN"}, :instance_role], awscli_auth_adapter: ExAws.STS.AuthCache.AssumeRoleWebIdentityAdapter,
2021-07-20 21:26:26.761 pid=<0.2408.0> [info]  Application d_loader exited: exited in: DLoader.Application.start(:normal, [])


12 ** (EXIT) exited in: GenServer.call(ExAws.Config.AuthCache, {:refresh_awscli_config, "default", 30000}, 30000) 11 ** (EXIT) exited in: GenServer.call(ExAws.Config.AuthCache, {:refresh_auth, %{access_key_id: "dummy", host: "sts.us-west-1.amazonaws.com", http_client: ExAws.Request.Hackney, json_codec: Jason, normalize_path: true, port: 443, region: "us-west-1", retries: [max_attempts: 10, base_backoff_in_ms: 10, max_backoff_in_ms: 10000], role_arn: "arn:aws:iam::981971132015:role/doc_loader_pod_role_qa", role_session_name: "default_session", scheme: "https://", secret_access_key: "dummy", security_token: [{:system, "AWS_SESSION_TOKEN"}, :instance_role], web_identity_token: "eyJhb...vq-Q"}}, 30000) 10 ** (EXIT) process attempted to call itself 9 21:26:26.760 [error] gen_server 'Elixir.ExAws.Config.AuthCache' terminated with reason: {calling_self,{'Elixir.GenServer',call,['Elixir.ExAws.Config.AuthCache',{refresh_auth,#{access_key_id => <<"dummy">>,host => <<"sts.us-west-1.amazonaws.com">>,http_client => 'Elixir.ExAws.Request.Hackney',json_codec => 'Elixir.Jason',normalize_path => true,port => 443,region => <<"us-west-1">>,retries => [{max_attempts,10},{base_backoff_in_ms,10},{max_backoff_in_ms,10000}],role_arn => <<"arn:aws:iam::981971132015:role/doc_loader_pod_role_qa">>,role_session_name => <<"default_session">>,scheme => ...,...}},...]}} in 'Elixir.GenServer':call/3 line 1016 8

Where Next?

Popular in Questions Top

aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New
Codball
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 45766 226
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

We're in Beta

About us Mission Statement