ex-aws/ex_aws

AccesDenied - ExAws Request Error!

ridzria opened this issue · 2 comments

ExAws suddenly throwing error since this morning. But it was working until yesterday and can upload files. Not sure what is going on.

Version:

Elixir 1.14.2
Phoenix 1.6.16

Error when running this command.
ExAws.S3.list_buckets() |> ExAws.request!()

Error:

** (ExAws.Error) ExAws Request Error!

{:error, {:http_error, 403, %{body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>HQAJJ8Z7G25RZPG6</RequestId><HostId>H4AbgIolVsevPLsLZ9W32UalcXk3P8Lt0p3qk7z/MgXDbjyjA+YPAvU38bGoM4+uFhzMJvC3gRw=</HostId></Error>", headers: [{"x-amz-request-id", "HQAJJ8Z7G25RZPG6"}, {"x-amz-id-2", "H4AbgIolVsevPLsLZ9W32UalcXk3P8Lt0p3qk7z/MgXDbjyjA+YPAvU38bGoM4+uFhzMJvC3gRw="}, {"Content-Type", "application/xml"}, {"Transfer-Encoding", "chunked"}, {"Date", "Tue, 18 Apr 2023 06:59:16 GMT"}, {"Server", "AmazonS3"}], status_code: 403}}}

    (ex_aws 2.4.2) lib/ex_aws.ex:90: ExAws.request!/2

Looks like your permissions have been broken somehow. Can you do a list-buckets from the command line using the same role?

Closing as inactive.