From e43b40df7911f9f97c1a16dc3a9659c5b9bee16c Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 20 Jun 2024 10:46:00 -0400 Subject: [PATCH 01/16] Add Req request backend --- lib/ex_aws/request/req.ex | 31 +++++++++++++++++++++++++++++++ mix.exs | 4 ++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 lib/ex_aws/request/req.ex diff --git a/lib/ex_aws/request/req.ex b/lib/ex_aws/request/req.ex new file mode 100644 index 00000000..b4a75b59 --- /dev/null +++ b/lib/ex_aws/request/req.ex @@ -0,0 +1,31 @@ +defmodule ExAws.Request.Req do + @behaviour ExAws.Request.HttpClient + + @moduledoc """ + Configuration for `m:Req`. + + Options can be set for `m:Req` with the following config: + + config :ex_aws, :req_opts, + receive_timeout: 30_000 + + The default config handles setting the above. + """ + + @default_opts [receive_timeout: 30_000] + + @impl true + def request(method, url, body \\ "", headers \\ [], http_opts \\ []) do + [method: method, url: url, body: body, headers: headers, decode_body: false] + |> Keyword.merge(Application.get_env(:ex_aws, :req_opts, @default_opts)) + |> Keyword.merge(http_opts) + |> Req.request() + |> case do + {:ok, %{status: status, headers: headers, body: body}} -> + {:ok, %{status_code: status, headers: headers, body: body}} + + {:error, reason} -> + {:error, %{reason: reason}} + end + end +end diff --git a/mix.exs b/mix.exs index 5f96ac63..e0befa3d 100644 --- a/mix.exs +++ b/mix.exs @@ -46,12 +46,12 @@ defmodule ExAws.Mixfile do {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.16", only: [:dev, :test]}, {:hackney, "~> 1.16", optional: true}, + {:req, "~> 0.3", optional: true}, {:jason, "~> 1.1", optional: true}, {:jsx, "~> 2.8 or ~> 3.0", optional: true}, {:mox, "~> 1.0", only: :test}, {:sweet_xml, "~> 0.7", optional: true}, - {:excoveralls, "~> 0.10", only: :test}, - {:req, "~> 0.3", only: :test} + {:excoveralls, "~> 0.10", only: :test} ] end From bd3b2cb7a54839291a7a288ff82b34af4b35adf4 Mon Sep 17 00:00:00 2001 From: Alpesh Jamgade Date: Sat, 22 Jun 2024 21:36:39 +0530 Subject: [PATCH 02/16] Adds ap-south-2 in endpoints.exs --- priv/endpoints.exs | 98 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 161c1c6e..9d47d96c 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -8,6 +8,7 @@ chime_identity_regions = [ chime_meeting_regions = [ "ap-south-1", + "ap-south-2", "ap-northeast-1", "ap-northeast-2", "ap-southeast-1", @@ -65,6 +66,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{"description" => "Asia Pacific (Seoul)"}, "ap-east-1" => %{"description" => "Asia Pacific (Hong Kong)"}, "ap-south-1" => %{"description" => "Asia Pacific (Mumbai)"}, + "ap-south-2" => %{"description" => "Asia Pacific (Hyderabad)"}, "ap-southeast-1" => %{"description" => "Asia Pacific (Singapore)"}, "ap-southeast-2" => %{"description" => "Asia Pacific (Sydney)"}, "ap-southeast-3" => %{"description" => "Asia Pacific (Jakarta)"}, @@ -92,6 +94,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -107,6 +110,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -122,6 +126,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -193,6 +198,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{"protocols" => ["https"]}, "ap-northeast-2" => %{"protocols" => ["https"]}, "ap-south-1" => %{"protocols" => ["https"]}, + "ap-south-2" => %{"protocols" => ["https"]}, "ap-southeast-1" => %{"protocols" => ["https"]}, "ap-southeast-2" => %{"protocols" => ["https"]}, "ca-central-1" => %{"protocols" => ["https"]}, @@ -212,6 +218,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-east-1" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, @@ -236,6 +243,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -266,6 +274,9 @@ chime_voice_regions = [ "ap-south-1" => %{ "hostname" => "pinpoint.ap-south-1.amazonaws.com" }, + "ap-south-2" => %{ + "hostname" => "pinpoint.ap-south-2.amazonaws.com" + }, "ap-northeast-1" => %{ "hostname" => "pinpoint.ap-northeast-1.amazonaws.com" }, @@ -299,6 +310,7 @@ chime_voice_regions = [ "us-east-2" => %{}, "us-west-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-southeast-1" => %{}, @@ -324,6 +336,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -342,6 +355,7 @@ chime_voice_regions = [ "af-south-1" => %{}, "ap-northeast-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -363,6 +377,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -409,6 +424,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -435,6 +451,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -468,6 +485,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -490,6 +508,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -532,6 +551,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -554,6 +574,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -576,6 +597,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -622,6 +644,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -646,6 +669,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -663,6 +687,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -680,6 +705,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -702,6 +728,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -725,6 +752,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -755,6 +783,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -786,6 +815,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -808,6 +838,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -848,6 +879,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -898,6 +930,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -965,6 +998,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -984,6 +1018,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1005,6 +1040,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1026,6 +1062,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1050,6 +1087,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1118,6 +1156,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1153,6 +1192,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1186,6 +1226,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ap-southeast-3" => %{}, @@ -1215,6 +1256,7 @@ chime_voice_regions = [ "endpoints" => %{ "ap-northeast-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "eu-west-1" => %{}, @@ -1233,6 +1275,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1254,6 +1297,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ap-southeast-3" => %{}, @@ -1285,6 +1329,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "eu-central-1" => %{}, @@ -1310,6 +1355,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1331,6 +1377,7 @@ chime_voice_regions = [ "us-east-1" => %{}, "us-west-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-northeast-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, @@ -1348,6 +1395,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1369,6 +1417,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1402,6 +1451,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1424,6 +1474,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1445,6 +1496,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1465,6 +1517,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1484,6 +1537,7 @@ chime_voice_regions = [ "endpoints" => %{ "ap-northeast-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "eu-west-1" => %{}, @@ -1500,6 +1554,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1522,6 +1577,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1543,6 +1599,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1563,6 +1620,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1586,6 +1644,7 @@ chime_voice_regions = [ "us-east-1" => %{}, "us-west-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-northeast-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, @@ -1617,6 +1676,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "eu-central-1" => %{}, @@ -1642,6 +1702,7 @@ chime_voice_regions = [ "rekognition" => %{ "endpoints" => %{ "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-southeast-1" => %{}, @@ -1722,6 +1783,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{ "hostname" => "s3.ap-southeast-1.amazonaws.com", "signatureVersions" => ["s3", "s3v4"] @@ -1789,6 +1851,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1816,6 +1879,7 @@ chime_voice_regions = [ "medialive" => %{ "endpoints" => %{ "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-southeast-1" => %{}, @@ -1843,6 +1907,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1873,6 +1938,7 @@ chime_voice_regions = [ }, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ap-southeast-3" => %{}, @@ -1923,6 +1989,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -1955,6 +2022,7 @@ chime_voice_regions = [ "us-east-2" => %{}, "us-west-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-northeast-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, @@ -1992,6 +2060,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2017,6 +2086,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2039,6 +2109,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2061,6 +2132,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "eu-central-1" => %{}, @@ -2083,6 +2155,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2109,6 +2182,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2131,6 +2205,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2165,6 +2240,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "eu-central-1" => %{}, @@ -2180,6 +2256,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2231,6 +2308,7 @@ chime_voice_regions = [ "ap-south-2" => %{}, "ap-southeast-3" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-northeast-3" => %{}, "ap-northeast-2" => %{}, "ap-southeast-1" => %{}, @@ -2272,6 +2350,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2302,6 +2381,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2322,6 +2402,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2344,6 +2425,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2401,6 +2483,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2423,6 +2506,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "eu-central-1" => %{}, @@ -2438,6 +2522,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2459,6 +2544,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2480,6 +2566,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-2" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, @@ -2508,6 +2595,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2528,6 +2616,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2551,6 +2640,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2592,6 +2682,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-northeast-2" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2654,6 +2745,7 @@ chime_voice_regions = [ "eu-west-2" => %{}, "ap-northeast-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2672,6 +2764,7 @@ chime_voice_regions = [ "eu-west-2" => %{}, "ap-northeast-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2690,6 +2783,7 @@ chime_voice_regions = [ "eu-west-2" => %{}, "ap-northeast-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2708,6 +2802,7 @@ chime_voice_regions = [ "eu-west-2" => %{}, "ap-northeast-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2726,6 +2821,7 @@ chime_voice_regions = [ "eu-west-2" => %{}, "ap-northeast-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2739,6 +2835,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, @@ -2761,6 +2858,7 @@ chime_voice_regions = [ "ap-northeast-2" => %{}, "ap-east-1" => %{}, "ap-south-1" => %{}, + "ap-south-2" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ap-southeast-3" => %{}, From 43d7fa5ed87a36711068acb007f36c1f4490f801 Mon Sep 17 00:00:00 2001 From: Isaak Tsalicoglou Date: Mon, 24 Jun 2024 18:15:30 +0300 Subject: [PATCH 03/16] Don't set content-length header for HEAD requests with empty body This extra function clause prevents the `content-length` (equals 0) header from being added to the headers of a `HEAD` request with an empty body. This is compliant with [Amazon's specification of the HeadObject API endpoint] that doesn't specify the `content-length` header as part of the URI Request Parameters. As a benefit, this makes ExAws and ExAws.S3 work with [Garage](https://garagehq.deuxfleurs.fr/), which, unlike [Minio](https://min.io), doesn't gracefully handle the extraneous presence of the `{"content-length", "0"}` header in the request headers of the HeadObject call. --- lib/ex_aws/operation/s3.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ex_aws/operation/s3.ex b/lib/ex_aws/operation/s3.ex index 9af75145..fcf02fa6 100644 --- a/lib/ex_aws/operation/s3.ex +++ b/lib/ex_aws/operation/s3.ex @@ -46,6 +46,8 @@ defmodule ExAws.Operation.S3 do defp put_content_length_header(headers, "", :get), do: headers + defp put_content_length_header(headers, "", :head), do: headers + defp put_content_length_header(headers, body, _) do Map.put(headers, "content-length", IO.iodata_length(body) |> Integer.to_string()) end From 544c9acbba6e0206b40fae49ceea636ff42022a5 Mon Sep 17 00:00:00 2001 From: Elliot Jackson Date: Wed, 26 Jun 2024 11:36:03 +0100 Subject: [PATCH 04/16] add eu-west-2 to bedrock --- priv/endpoints.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 161c1c6e..b6664da9 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -134,6 +134,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-southeast-1" => %{}, "eu-central-1" => %{}, + "eu-west-2" => %{}, "us-east-1" => %{}, "us-west-2" => %{} } @@ -144,6 +145,7 @@ chime_voice_regions = [ "ap-northeast-1" => %{}, "ap-southeast-1" => %{}, "eu-central-1" => %{}, + "eu-west-2" => %{}, "us-east-1" => %{}, "us-west-2" => %{} } From 6a23dc2dd5c9a1107e43c6dbc5fe52557bf7bde6 Mon Sep 17 00:00:00 2001 From: Isaak Tsalicoglou Date: Thu, 27 Jun 2024 09:45:22 +0300 Subject: [PATCH 05/16] Added put_content_length_header clause for DELETE too --- lib/ex_aws/operation/s3.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ex_aws/operation/s3.ex b/lib/ex_aws/operation/s3.ex index fcf02fa6..3ec2d521 100644 --- a/lib/ex_aws/operation/s3.ex +++ b/lib/ex_aws/operation/s3.ex @@ -48,6 +48,8 @@ defmodule ExAws.Operation.S3 do defp put_content_length_header(headers, "", :head), do: headers + defp put_content_length_header(headers, "", :delete), do: headers + defp put_content_length_header(headers, body, _) do Map.put(headers, "content-length", IO.iodata_length(body) |> Integer.to_string()) end From bc74506454ccb4171616eeffdd4794cef8dabf1c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:22:56 +0000 Subject: [PATCH 06/16] Bump ex_doc from 0.34.0 to 0.34.2 Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.34.0 to 0.34.2. - [Release notes](https://github.com/elixir-lang/ex_doc/releases) - [Changelog](https://github.com/elixir-lang/ex_doc/blob/main/CHANGELOG.md) - [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.34.0...v0.34.2) --- updated-dependencies: - dependency-name: ex_doc dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- mix.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.lock b/mix.lock index 1538279a..9ac01cfb 100644 --- a/mix.lock +++ b/mix.lock @@ -7,9 +7,9 @@ "cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"}, "cowlib": {:hex, :cowlib, "2.12.1", "a9fa9a625f1d2025fe6b462cb865881329b5caff8f1854d1cbc9f9533f00e1e1", [:make, :rebar3], [], "hexpm", "163b73f6367a7341b33c794c4e88e7dbfe6498ac42dcd69ef44c5bc5507c8db0"}, "dialyxir": {:hex, :dialyxir, "1.4.3", "edd0124f358f0b9e95bfe53a9fcf806d615d8f838e2202a9f430d59566b6b53b", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "bf2cfb75cd5c5006bec30141b131663299c661a864ec7fbbc72dfa557487a986"}, - "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.40", "f3534689f6b58f48aa3a9ac850d4f05832654fe257bf0549c08cc290035f70d5", [:mix], [], "hexpm", "cdb34f35892a45325bad21735fadb88033bcb7c4c296a999bde769783f53e46a"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, - "ex_doc": {:hex, :ex_doc, "0.34.0", "ab95e0775db3df71d30cf8d78728dd9261c355c81382bcd4cefdc74610bef13e", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "60734fb4c1353f270c3286df4a0d51e65a2c1d9fba66af3940847cc65a8066d7"}, + "ex_doc": {:hex, :ex_doc, "0.34.2", "13eedf3844ccdce25cfd837b99bea9ad92c4e511233199440488d217c92571e8", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "5ce5f16b41208a50106afed3de6a2ed34f4acfd65715b82a0b84b49d995f95c1"}, "excoveralls": {:hex, :excoveralls, "0.18.1", "a6f547570c6b24ec13f122a5634833a063aec49218f6fff27de9df693a15588c", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "d65f79db146bb20399f23046015974de0079668b9abb2f5aac074d078da60b8d"}, "finch": {:hex, :finch, "0.16.0", "40733f02c89f94a112518071c0a91fe86069560f5dbdb39f9150042f44dcfb1a", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.3", [hex: :mint, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4 or ~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 0.2.6 or ~> 1.0", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "f660174c4d519e5fec629016054d60edd822cdfe2b7270836739ac2f97735ec5"}, "hackney": {:hex, :hackney, "1.20.1", "8d97aec62ddddd757d128bfd1df6c5861093419f8f7a4223823537bad5d064e2", [:rebar3], [{:certifi, "~>2.12.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~>6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~>1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.4.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~>1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "fe9094e5f1a2a2c0a7d10918fee36bfec0ec2a979994cff8cfe8058cd9af38e3"}, From 489f27aaebeac05d18026db574154f263c5a0393 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:41:06 +0000 Subject: [PATCH 07/16] Bump jason from 1.4.1 to 1.4.4 Bumps [jason](https://github.com/michalmuskala/jason) from 1.4.1 to 1.4.4. - [Release notes](https://github.com/michalmuskala/jason/releases) - [Changelog](https://github.com/michalmuskala/jason/blob/v1.4.4/CHANGELOG.md) - [Commits](https://github.com/michalmuskala/jason/compare/v1.4.1...v1.4.4) --- updated-dependencies: - dependency-name: jason dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- mix.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.lock b/mix.lock index 1538279a..b27e1342 100644 --- a/mix.lock +++ b/mix.lock @@ -15,7 +15,7 @@ "hackney": {:hex, :hackney, "1.20.1", "8d97aec62ddddd757d128bfd1df6c5861093419f8f7a4223823537bad5d064e2", [:rebar3], [{:certifi, "~>2.12.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~>6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~>1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.4.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~>1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "fe9094e5f1a2a2c0a7d10918fee36bfec0ec2a979994cff8cfe8058cd9af38e3"}, "hpax": {:hex, :hpax, "0.1.2", "09a75600d9d8bbd064cdd741f21fc06fc1f4cf3d0fcc335e5aa19be1a7235c84", [:mix], [], "hexpm", "2c87843d5a23f5f16748ebe77969880e29809580efdaccd615cd3bed628a8c13"}, "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, - "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, + "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"}, "jsx": {:hex, :jsx, "3.1.0", "d12516baa0bb23a59bb35dccaf02a1bd08243fcbb9efe24f2d9d056ccff71268", [:rebar3], [], "hexpm", "0c5cc8fdc11b53cc25cf65ac6705ad39e54ecc56d1c22e4adb8f5a53fb9427f3"}, "makeup": {:hex, :makeup, "1.1.2", "9ba8837913bdf757787e71c1581c21f9d2455f4dd04cfca785c70bbfff1a76a3", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cce1566b81fbcbd21eca8ffe808f33b221f9eee2cbc7a1706fc3da9ff18e6cac"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, From 4e951b6241fd0021aada4b0abb6f50a25ebfd1f9 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Tue, 20 Aug 2024 19:44:32 -0400 Subject: [PATCH 08/16] tests: update elixir/erlang test matrix --- .github/workflows/on-push.yml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index b7d3482b..b0e12fb5 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -11,22 +11,37 @@ jobs: strategy: matrix: include: + - pair: + otp: 27.x + elixir: 1.17.x + lint: lint + + - pair: + otp: 26.x + elixir: 1.17.x - pair: otp: 26.x elixir: 1.16.x - lint: lint - pair: otp: 26.x elixir: 1.15.x + + - pair: + otp: 25.x + elixir: 1.17.x + - pair: + otp: 25.x + elixir: 1.16.x - pair: otp: 25.x elixir: 1.15.x - pair: otp: 25.x elixir: 1.14.x + - pair: - otp: 25.x - elixir: 1.13.x + otp: 24.x + elixir: 1.16.x - pair: otp: 24.x elixir: 1.15.x @@ -36,18 +51,13 @@ jobs: - pair: otp: 24.x elixir: 1.13.x - - pair: - otp: 24.x - elixir: 1.12.x + - pair: otp: 23.x elixir: 1.14.x - pair: otp: 23.x elixir: 1.13.x - - pair: - otp: 23.x - elixir: 1.12.x steps: - uses: actions/checkout@v4 From d1c1db460aea893baa04c07ac5bb334003eabdf6 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Tue, 20 Aug 2024 19:45:08 -0400 Subject: [PATCH 09/16] tests: use ubuntu 24.04 --- .github/workflows/on-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index b0e12fb5..d287a619 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -6,7 +6,7 @@ env: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 # See https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp strategy: matrix: From 7dc3a05c3c1627dab52615d1d5cc82bd02d7f464 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:00:20 +0000 Subject: [PATCH 10/16] Bump telemetry from 1.2.1 to 1.3.0 Bumps [telemetry](https://github.com/beam-telemetry/telemetry) from 1.2.1 to 1.3.0. - [Changelog](https://github.com/beam-telemetry/telemetry/blob/main/CHANGELOG.md) - [Commits](https://github.com/beam-telemetry/telemetry/compare/v1.2.1...v1.3.0) --- updated-dependencies: - dependency-name: telemetry dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- mix.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.lock b/mix.lock index 1538279a..45e14bf2 100644 --- a/mix.lock +++ b/mix.lock @@ -36,6 +36,6 @@ "req": {:hex, :req, "0.4.5", "2071bbedd280f107b9e33e1ddff2beb3991ec1ae06caa2cca2ab756393d8aca5", [:mix], [{:brotli, "~> 0.3.1", [hex: :brotli, repo: "hexpm", optional: true]}, {:ezstd, "~> 1.0", [hex: :ezstd, repo: "hexpm", optional: true]}, {:finch, "~> 0.9", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:nimble_csv, "~> 1.0", [hex: :nimble_csv, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "dd23e9c7303ddeb2dee09ff11ad8102cca019e38394456f265fb7b9655c64dd8"}, "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"}, "sweet_xml": {:hex, :sweet_xml, "0.7.3", "debb256781c75ff6a8c5cbf7981146312b66f044a2898f453709a53e5031b45b", [:mix], [], "hexpm", "e110c867a1b3fe74bfc7dd9893aa851f0eed5518d0d7cad76d7baafd30e4f5ba"}, - "telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"}, + "telemetry": {:hex, :telemetry, "1.3.0", "fedebbae410d715cf8e7062c96a1ef32ec22e764197f70cda73d82778d61e7a2", [:rebar3], [], "hexpm", "7015fc8919dbe63764f4b4b87a95b7c0996bd539e0d499be6ec9d7f3875b79e6"}, "unicode_util_compat": {:hex, :unicode_util_compat, "0.7.0", "bc84380c9ab48177092f43ac89e4dfa2c6d62b40b8bd132b1059ecc7232f9a78", [:rebar3], [], "hexpm", "25eee6d67df61960cf6a794239566599b09e17e668d3700247bc498638152521"}, } From a9926b5a809214c8c11632d198dc00cf7642664c Mon Sep 17 00:00:00 2001 From: Ionut Felician Federiga Date: Mon, 26 Aug 2024 09:06:04 +0200 Subject: [PATCH 11/16] added s3 support for eu-south-2 --- priv/endpoints.exs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 161c1c6e..2d10efb8 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -76,6 +76,7 @@ chime_voice_regions = [ "eu-west-3" => %{"description" => "EU (Paris)"}, "eu-north-1" => %{"description" => "EU (Stockholm)"}, "eu-south-1" => %{"description" => "EU (Milan)"}, + "eu-south-2" => %{"description" => "EU (Madrid)"}, "me-south-1" => %{"description" => "Middle East (Bahrain)"}, "sa-east-1" => %{"description" => "South America (Sao Paulo)"}, "us-east-1" => %{"description" => "US East (N. Virginia)"}, @@ -1747,6 +1748,10 @@ chime_voice_regions = [ "signatureVersions" => ["s3", "s3v4"] }, "eu-south-1" => %{}, + "eu-south-2" => %{ + "hostname" => "s3.eu-south-2.amazonaws.com", + "signatureVersions" => ["s3", "s3v4"] + }, "eu-west-2" => %{}, "eu-west-3" => %{}, "eu-north-1" => %{}, From 26a7b28aa5c2ff7f4efb6af88a670cf99ac2cadb Mon Sep 17 00:00:00 2001 From: Ionut Felician Federiga Date: Thu, 29 Aug 2024 15:53:08 +0200 Subject: [PATCH 12/16] corrected region description --- priv/endpoints.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 2d10efb8..5c4928a0 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -76,7 +76,7 @@ chime_voice_regions = [ "eu-west-3" => %{"description" => "EU (Paris)"}, "eu-north-1" => %{"description" => "EU (Stockholm)"}, "eu-south-1" => %{"description" => "EU (Milan)"}, - "eu-south-2" => %{"description" => "EU (Madrid)"}, + "eu-south-2" => %{"description" => "EU (Spain)"}, "me-south-1" => %{"description" => "Middle East (Bahrain)"}, "sa-east-1" => %{"description" => "South America (Sao Paulo)"}, "us-east-1" => %{"description" => "US East (N. Virginia)"}, @@ -1751,7 +1751,7 @@ chime_voice_regions = [ "eu-south-2" => %{ "hostname" => "s3.eu-south-2.amazonaws.com", "signatureVersions" => ["s3", "s3v4"] - }, + }, "eu-west-2" => %{}, "eu-west-3" => %{}, "eu-north-1" => %{}, From 20dfd279c41f3581f93df4b27666cecc5296b349 Mon Sep 17 00:00:00 2001 From: Enrico Salis Date: Fri, 30 Aug 2024 11:32:15 +0200 Subject: [PATCH 13/16] Added 'eu-south-1' region to DynamoDB endpoints data --- priv/endpoints.exs | 1 + 1 file changed, 1 insertion(+) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 161c1c6e..2e882cc9 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -734,6 +734,7 @@ chime_voice_regions = [ "eu-west-2" => %{}, "eu-west-3" => %{}, "eu-north-1" => %{}, + "eu-south-1" => %{}, "local" => %{ "credentialScope" => %{"region" => "us-east-1"}, "hostname" => "localhost:8000", From 6cee2fc6c2fd2bdf1e3c6fe56d0eb399888eeb4d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 03:49:39 +0000 Subject: [PATCH 14/16] Bump mox from 1.1.0 to 1.2.0 Bumps [mox](https://github.com/dashbitco/mox) from 1.1.0 to 1.2.0. - [Changelog](https://github.com/dashbitco/mox/blob/main/CHANGELOG.md) - [Commits](https://github.com/dashbitco/mox/commits) --- updated-dependencies: - dependency-name: mox dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- mix.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mix.lock b/mix.lock index 1538279a..451f1cc7 100644 --- a/mix.lock +++ b/mix.lock @@ -24,8 +24,9 @@ "mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"}, "mimerl": {:hex, :mimerl, "1.2.0", "67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3", [:rebar3], [], "hexpm", "f278585650aa581986264638ebf698f8bb19df297f66ad91b18910dfc6e19323"}, "mint": {:hex, :mint, "1.5.1", "8db5239e56738552d85af398798c80648db0e90f343c8469f6c6d8898944fb6f", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "4a63e1e76a7c3956abd2c72f370a0d0aecddc3976dea5c27eccbecfa5e7d5b1e"}, - "mox": {:hex, :mox, "1.1.0", "0f5e399649ce9ab7602f72e718305c0f9cdc351190f72844599545e4996af73c", [:mix], [], "hexpm", "d44474c50be02d5b72131070281a5d3895c0e7a95c780e90bc0cfe712f633a13"}, + "mox": {:hex, :mox, "1.2.0", "a2cd96b4b80a3883e3100a221e8adc1b98e4c3a332a8fc434c39526babafd5b3", [:mix], [{:nimble_ownership, "~> 1.0", [hex: :nimble_ownership, repo: "hexpm", optional: false]}], "hexpm", "c7b92b3cc69ee24a7eeeaf944cd7be22013c52fcb580c1f33f50845ec821089a"}, "nimble_options": {:hex, :nimble_options, "1.0.2", "92098a74df0072ff37d0c12ace58574d26880e522c22801437151a159392270e", [:mix], [], "hexpm", "fd12a8db2021036ce12a309f26f564ec367373265b53e25403f0ee697380f1b8"}, + "nimble_ownership": {:hex, :nimble_ownership, "1.0.0", "3f87744d42c21b2042a0aa1d48c83c77e6dd9dd357e425a038dd4b49ba8b79a1", [:mix], [], "hexpm", "7c16cc74f4e952464220a73055b557a273e8b1b7ace8489ec9d86e9ad56cb2cc"}, "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, "nimble_pool": {:hex, :nimble_pool, "1.0.0", "5eb82705d138f4dd4423f69ceb19ac667b3b492ae570c9f5c900bb3d2f50a847", [:mix], [], "hexpm", "80be3b882d2d351882256087078e1b1952a28bf98d0a287be87e4a24a710b67a"}, "parse_trans": {:hex, :parse_trans, "3.4.1", "6e6aa8167cb44cc8f39441d05193be6e6f4e7c2946cb2759f015f8c56b76e5ff", [:rebar3], [], "hexpm", "620a406ce75dada827b82e453c19cf06776be266f5a67cff34e1ef2cbb60e49a"}, From 2fc57ff59ac3233fa8908027b918fc703e18359f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 04:05:24 +0000 Subject: [PATCH 15/16] Bump excoveralls from 0.18.1 to 0.18.3 Bumps [excoveralls](https://github.com/parroty/excoveralls) from 0.18.1 to 0.18.3. - [Release notes](https://github.com/parroty/excoveralls/releases) - [Changelog](https://github.com/parroty/excoveralls/blob/master/CHANGELOG.md) - [Commits](https://github.com/parroty/excoveralls/compare/v0.18.1...v0.18.3) --- updated-dependencies: - dependency-name: excoveralls dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- mix.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.lock b/mix.lock index dc45c8f4..5880e967 100644 --- a/mix.lock +++ b/mix.lock @@ -1,6 +1,6 @@ %{ "bypass": {:hex, :bypass, "2.1.0", "909782781bf8e20ee86a9cabde36b259d44af8b9f38756173e8f5e2e1fabb9b1", [:mix], [{:plug, "~> 1.7", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.0", [hex: :plug_cowboy, repo: "hexpm", optional: false]}, {:ranch, "~> 1.3", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "d9b5df8fa5b7a6efa08384e9bbecfe4ce61c77d28a4282f79e02f1ef78d96b80"}, - "castore": {:hex, :castore, "1.0.6", "ffc42f110ebfdafab0ea159cd43d31365fa0af0ce4a02ecebf1707ae619ee727", [:mix], [], "hexpm", "374c6e7ca752296be3d6780a6d5b922854ffcc74123da90f2f328996b962d33a"}, + "castore": {:hex, :castore, "1.0.8", "dedcf20ea746694647f883590b82d9e96014057aff1d44d03ec90f36a5c0dc6e", [:mix], [], "hexpm", "0b2b66d2ee742cb1d9cb8c8be3b43c3a70ee8651f37b75a8b982e036752983f1"}, "certifi": {:hex, :certifi, "2.12.0", "2d1cca2ec95f59643862af91f001478c9863c2ac9cb6e2f89780bfd8de987329", [:rebar3], [], "hexpm", "ee68d85df22e554040cdb4be100f33873ac6051387baf6a8f6ce82272340ff1c"}, "configparser_ex": {:hex, :configparser_ex, "4.0.0", "17e2b831cfa33a08c56effc610339b2986f0d82a9caa0ed18880a07658292ab6", [:mix], [], "hexpm", "02e6d1a559361a063cba7b75bc3eb2d6ad7e62730c551cc4703541fd11e65e5b"}, "cowboy": {:hex, :cowboy, "2.10.0", "ff9ffeff91dae4ae270dd975642997afe2a1179d94b1887863e43f681a203e26", [:make, :rebar3], [{:cowlib, "2.12.1", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "3afdccb7183cc6f143cb14d3cf51fa00e53db9ec80cdcd525482f5e99bc41d6b"}, @@ -10,7 +10,7 @@ "earmark_parser": {:hex, :earmark_parser, "1.4.40", "f3534689f6b58f48aa3a9ac850d4f05832654fe257bf0549c08cc290035f70d5", [:mix], [], "hexpm", "cdb34f35892a45325bad21735fadb88033bcb7c4c296a999bde769783f53e46a"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, "ex_doc": {:hex, :ex_doc, "0.34.2", "13eedf3844ccdce25cfd837b99bea9ad92c4e511233199440488d217c92571e8", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "5ce5f16b41208a50106afed3de6a2ed34f4acfd65715b82a0b84b49d995f95c1"}, - "excoveralls": {:hex, :excoveralls, "0.18.1", "a6f547570c6b24ec13f122a5634833a063aec49218f6fff27de9df693a15588c", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "d65f79db146bb20399f23046015974de0079668b9abb2f5aac074d078da60b8d"}, + "excoveralls": {:hex, :excoveralls, "0.18.3", "bca47a24d69a3179951f51f1db6d3ed63bca9017f476fe520eb78602d45f7756", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "746f404fcd09d5029f1b211739afb8fb8575d775b21f6a3908e7ce3e640724c6"}, "finch": {:hex, :finch, "0.16.0", "40733f02c89f94a112518071c0a91fe86069560f5dbdb39f9150042f44dcfb1a", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.3", [hex: :mint, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4 or ~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 0.2.6 or ~> 1.0", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "f660174c4d519e5fec629016054d60edd822cdfe2b7270836739ac2f97735ec5"}, "hackney": {:hex, :hackney, "1.20.1", "8d97aec62ddddd757d128bfd1df6c5861093419f8f7a4223823537bad5d064e2", [:rebar3], [{:certifi, "~>2.12.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~>6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~>1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.4.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~>1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "fe9094e5f1a2a2c0a7d10918fee36bfec0ec2a979994cff8cfe8058cd9af38e3"}, "hpax": {:hex, :hpax, "0.1.2", "09a75600d9d8bbd064cdd741f21fc06fc1f4cf3d0fcc335e5aa19be1a7235c84", [:mix], [], "hexpm", "2c87843d5a23f5f16748ebe77969880e29809580efdaccd615cd3bed628a8c13"}, From bfaaf8d359af0e718b12f1189f0bf417d3c0ecf7 Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Tue, 10 Sep 2024 14:23:43 +1000 Subject: [PATCH 16/16] Remove unsupported erlang 23.x tests --- .github/workflows/on-push.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index d287a619..b420d7e7 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -52,13 +52,6 @@ jobs: otp: 24.x elixir: 1.13.x - - pair: - otp: 23.x - elixir: 1.14.x - - pair: - otp: 23.x - elixir: 1.13.x - steps: - uses: actions/checkout@v4 - uses: erlef/setup-beam@v1