bishen28

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

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.

Where Next?

Popular in Questions Top

Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
minhajuddin
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
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
pmjoe
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
LegitStack
I’m hoping you guys can give me some general advice and perhaps code examples if you’re feeling up to it. I’m very interested in Elixir,...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
gonzofish
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
pmjoe
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
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
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
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
Fl4m3Ph03n1x
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
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

We're in Beta

About us Mission Statement