Kallebhalf
Problem with auth in AWS
Hi! I am using Bamboo to send some emails with the SES Adapter (the email service from AWS).
To make authentication for the service the lib ex_aws is used, I use the default configuration for that, the environment variables for access_id and secret. But when I try to send an email I receive:
{:error,
%Bamboo.ApiError{
message: "{:http_error, 403, %{body: \"<ErrorResponse xmlns=\\\"http://ses.amazonaws.com/doc/2010-12-01/\\\">\\n <Error>\\n <Type>Sender</Type>\\n <Code>SignatureDoesNotMatch</Code>\\n <Message>The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.\\n\\nThe Canonical String for this request should have been\\n'POST\\n/\\n\\ncontent-encoding:identity\\ncontent-type:application/x-www-form-urlencoded\\nhost:email.us-east-1.amazonaws.com\\nx-amz-date:20210414T180110Z\\n\\ncontent-encoding;content-type;host;x-amz-date\\n54d5034558ac42946873e79cc6419df4b7a69a32f7d5ea0882407624ce5e8eae'\\n\\nThe String-to-Sign should have been\\n'AWS4-HMAC-SHA256\\n20210414T180110Z\\n20210414/us-east-1/ses/aws4_request\\nbc72f280b3b6ac7682921ce7b6f8582ed3382be4d3dd93bf6ca0da7186378c61'\\n</Message>\\n </Error>\\n <RequestId>fdfa8be6-39f9-4482-b0d5-442b6471de0c</RequestId>\\n</ErrorResponse>\\n\", headers: [{\"Date\", \"Wed, 14 Apr 2021 18:01:11 GMT\"}, {\"Content-Type\", \"text/xml\"}, {\"Content-Length\", \"919\"}, {\"Connection\", \"keep-alive\"}, {\"x-amzn-RequestId\", \"fdfa8be6-39f9-4482-b0d5-442b6471de0c\"}], status_code: 403}}"
}}
Note: When I use temp credentials from AWS the email is sent, but its temporary credentials, won’t long for production use.
Somebody who uses AWS’s services in Elixir had faced this?
Thanks in advance.
Popular in Questions
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
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
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: )
Hello all, this is ...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this
"1000"
What is the ...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
The documentation above suggests that while ...
New
Hello everyone,
I try to use an Javascript Event Handler in my root.html.leex file.
Therefore I created a function in the app.js file: ...
New
Other popular topics
Hello, how can I check the Phoenix version ?
Thanks !
New
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
Hello everyone,
Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
Hello everyone,
I try to use an Javascript Event Handler in my root.html.leex file.
Therefore I created a function in the app.js file: ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








