bishen28
Stuck with on an AWS SES request, getting 403, help me out
hello guys,
I am using ExAws.SES and to delete an eamil which is in suppression list and getting 403 error,
below is my code implementation please guide me what i am doing wrong
iex(11)> operation = ExAws.SES.delete_suppressed_destination("pg2625@eliotkids.com")
operation = %ExAws.Operation.JSON{
before_request: nil,
data: %{},
headers: [],
http_method: :delete,
params: %{},
parser: nil,
path: "/v2/email/suppression/addresses/pg2625%40eliotkids.com",
service: :ses,
stream_builder: nil
}
not writing real id and key for security purposes
auth_config = [
access_key_id: "YOUR_ACCESS_KEY_ID",
secret_access_key: "YOUR_SECRET_ACCESS_KEY",
region: "REGION"
]
now here i am making Aws request, and getting 403,
ExAws.request(operation, auth_config)
iex(12)> ExAws.request(operation, auth_config)
{:error,
{:http_error, 403,
%{
body: "{\"message\":\"The security token included in the request is invalid.\"}",
headers: [
{"Date", "Tue, 21 Feb 2023 06:44:55 GMT"},
{"Content-Type", "application/json"},
{"Content-Length", "68"},
{"Connection", "keep-alive"},
{"x-amzn-RequestId", "a470f7a4-19ff-41fb-bc81-75ff9b5ad312"},
{"x-amzn-ErrorType", "UnrecognizedClientException"}
],
status_code: 403
}}}
i am sure that my key, id and region is correct ,
what i am missing here not able figure it out,
please help me out here
First Post!
D4no0
It takes some time for the token to work in the correct region, there should have been a written warning about that when you were creating the token, before that there should be a temporary link from witch your token should work. At least that is what I remember from back a few years ago when I had the same problem.
Popular in Questions
In Ruby, I can go:
User.find_by(email: "foobar@email.com").update(email: "hello@email.com")
How can I do something similar in Elixir?
...
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
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
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
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
I have a User schema with a :from_id field set to type :string:
defmodule TweetBot.Repo.Migrations.CreateUsers do
use Ecto.Migration
...
New
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Other popular topics
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible.
total = 10
while total != 0
...
New
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
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set?
Thanks.
New
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
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 learn first? Rust or Elixir
Hi Elixir community!
I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
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









