From e2e9bc665e559bddc943cdefd7e30feefa19f46d Mon Sep 17 00:00:00 2001 From: Mathias Polligkeit Date: Sat, 23 Mar 2024 20:58:13 +0900 Subject: [PATCH 01/48] add changelog to package files --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 48cb885f..49259a64 100644 --- a/mix.exs +++ b/mix.exs @@ -58,7 +58,7 @@ defmodule ExAws.Mixfile do defp package do [ description: description(), - files: ["priv", "lib", "config", "mix.exs", "README*", "LICENSE"], + files: ["priv", "lib", "config", "mix.exs", "CHANGELOG.md", "README*", "LICENSE"], maintainers: ["Bernard Duggan", "Ben Wilson"], licenses: ["MIT"], links: %{ From 35673b9d176e9c06b175bb14b2fc7c4f0bb7e6d7 Mon Sep 17 00:00:00 2001 From: Akos Marton Date: Thu, 4 Apr 2024 13:12:02 +0200 Subject: [PATCH 02/48] Extend supported regions. --- priv/endpoints.exs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 731f1d12..218c94a7 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -1114,13 +1114,17 @@ chime_voice_regions = [ "ap-south-1" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, + "ap-southeast-3" => %{}, "ca-central-1" => %{}, "eu-central-1" => %{}, "eu-central-2" => %{}, + "eu-south-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, "eu-west-3" => %{}, "eu-north-1" => %{}, + "me-central-1" => %{}, + "me-south-1" => %{}, "sa-east-1" => %{}, "us-east-1" => %{}, "us-east-1-fips" => %{ @@ -1177,12 +1181,17 @@ chime_voice_regions = [ "ap-south-1" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, + "ap-southeast-3" => %{}, "ca-central-1" => %{}, "eu-central-1" => %{}, + "eu-central-2" => %{}, + "eu-south-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, "eu-west-3" => %{}, "eu-north-1" => %{}, + "me-central-1" => %{}, + "me-south-1" => %{}, "sa-east-1" => %{}, "us-east-1" => %{"sslCommonName" => "{service}.{dnsSuffix}"}, "us-east-1-fips" => %{ @@ -1783,13 +1792,18 @@ chime_voice_regions = [ "ap-south-1" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, + "ap-southeast-3" => %{}, "aws-global" => %{}, "ca-central-1" => %{}, "eu-central-1" => %{}, + "eu-central-2" => %{}, + "eu-south-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, "eu-west-3" => %{}, "eu-north-1" => %{}, + "me-central-1" => %{}, + "me-south-1" => %{}, "sa-east-1" => %{}, "us-east-1" => %{}, "us-east-1-fips" => %{ From 4b9a1c5e142ef0a1ce06d8b808e53eee7b592dce Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 14:07:37 +0000 Subject: [PATCH 03/48] Bump excoveralls from 0.18.0 to 0.18.1 Bumps [excoveralls](https://github.com/parroty/excoveralls) from 0.18.0 to 0.18.1. - [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.0...v0.18.1) --- 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 aba0ee6e..8e9199ce 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.4", "ff4d0fb2e6411c0479b1d965a814ea6d00e51eb2f58697446e9c41a97d940b28", [:mix], [], "hexpm", "9418c1b8144e11656f0be99943db4caf04612e3eaecefb5dae9a2a87565584f8"}, + "castore": {:hex, :castore, "1.0.6", "ffc42f110ebfdafab0ea159cd43d31365fa0af0ce4a02ecebf1707ae619ee727", [:mix], [], "hexpm", "374c6e7ca752296be3d6780a6d5b922854ffcc74123da90f2f328996b962d33a"}, "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.37", "2ad73550e27c8946648b06905a57e4d454e4d7229c2dafa72a0348c99d8be5f7", [:mix], [], "hexpm", "6b19783f2802f039806f375610faa22da130b8edc21209d0bff47918bb48360e"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, "ex_doc": {:hex, :ex_doc, "0.30.9", "d691453495c47434c0f2052b08dd91cc32bc4e1a218f86884563448ee2502dd2", [:mix], [{:earmark_parser, "~> 1.4.31", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "d7aaaf21e95dc5cddabf89063327e96867d00013963eadf2c6ad135506a8bc10"}, - "excoveralls": {:hex, :excoveralls, "0.18.0", "b92497e69465dc51bc37a6422226ee690ab437e4c06877e836f1c18daeb35da9", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "1109bb911f3cb583401760be49c02cbbd16aed66ea9509fc5479335d284da60b"}, + "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"}, "hpax": {:hex, :hpax, "0.1.2", "09a75600d9d8bbd064cdd741f21fc06fc1f4cf3d0fcc335e5aa19be1a7235c84", [:mix], [], "hexpm", "2c87843d5a23f5f16748ebe77969880e29809580efdaccd615cd3bed628a8c13"}, From 8ffe6439b1b4197d6f577a449abee356d4066fe9 Mon Sep 17 00:00:00 2001 From: Robert Jenkins Date: Tue, 9 Apr 2024 17:11:30 -0600 Subject: [PATCH 04/48] Update file.ex - Add way to merge in contents of other sections (sso_session, services) --- lib/ex_aws/credentials_ini/file.ex | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/lib/ex_aws/credentials_ini/file.ex b/lib/ex_aws/credentials_ini/file.ex index eb6d1e79..8bfc2991 100644 --- a/lib/ex_aws/credentials_ini/file.ex +++ b/lib/ex_aws/credentials_ini/file.ex @@ -9,6 +9,10 @@ if Code.ensure_loaded?(ConfigParser) do sso_start_url sso_region sso_account_id sso_role_name ) + @special_merge_keys ~w( + sso_session services + ) + def security_credentials(profile_name) do config_credentials = profile_from_config(profile_name) shared_credentials = profile_from_shared_credentials(profile_name) @@ -227,8 +231,9 @@ if Code.ensure_loaded?(ConfigParser) do contents |> ConfigParser.parse_string() |> case do - {:ok, %{^profile_name => config}} -> - strip_key_prefix(config) + {:ok, %{^profile_name => config} = full} -> + merge_special_keys(full, config) + |> strip_key_prefix() {:ok, %{}} -> %{} @@ -240,6 +245,23 @@ if Code.ensure_loaded?(ConfigParser) do def parse_ini_file(_, _), do: %{} + def merge_special_keys(full_config, credentials) do + credentials + |> Map.take(@special_merge_keys) + |> Enum.reduce(credentials, fn {key, val}, acc -> + merge_section = "#{String.replace(key, "_", "-")} #{val}" + + case full_config do + %{^merge_section => config} -> + Map.merge(config, acc) + |> Map.delete(key) + + _ -> + acc + end + end) + end + def strip_key_prefix(credentials) do credentials |> Map.take(@valid_config_keys) From 2bfee6fbf4a7ae792d2dc2ad43db943d9c56a649 Mon Sep 17 00:00:00 2001 From: Robert Jenkins Date: Tue, 9 Apr 2024 17:18:01 -0600 Subject: [PATCH 05/48] Update file_test.exs --- test/ex_aws/credentials_ini/file_test.exs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/ex_aws/credentials_ini/file_test.exs b/test/ex_aws/credentials_ini/file_test.exs index 59073dd3..32c04645 100644 --- a/test/ex_aws/credentials_ini/file_test.exs +++ b/test/ex_aws/credentials_ini/file_test.exs @@ -37,6 +37,28 @@ defmodule ExAws.CredentialsIni.File.FileTest do assert config.sso_role_name == "SomeRole" end + test "config file is parsed with sso config that uses sso_session" do + example_config = """ + [sso-session somecompany] + sso_start_url = https://start.us-gov-home.awsapps.com/directory/somecompany + sso_region = us-gov-west-1 + + [default] + sso_session = somecompany + sso_account_id = 123456789101 + sso_role_name = SomeRole + region = us-gov-west-1 + output = json + """ + + config = ExAws.CredentialsIni.File.parse_ini_file({:ok, example_config}, "default") + + assert config.sso_start_url == "https://start.us-gov-home.awsapps.com/directory/somecompany" + assert config.sso_region == "us-gov-west-1" + assert config.sso_account_id == "123456789101" + assert config.sso_role_name == "SomeRole" + end + test "{:system} in profile name gets dynamic profile name" do System.put_env("AWS_PROFILE", "custom-profile") From e948a5956aa5abe4bb8c0b7313fe56961278813f Mon Sep 17 00:00:00 2001 From: Robert Jenkins Date: Tue, 9 Apr 2024 17:43:56 -0600 Subject: [PATCH 06/48] Took out services for now --- lib/ex_aws/credentials_ini/file.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ex_aws/credentials_ini/file.ex b/lib/ex_aws/credentials_ini/file.ex index 8bfc2991..304ad732 100644 --- a/lib/ex_aws/credentials_ini/file.ex +++ b/lib/ex_aws/credentials_ini/file.ex @@ -9,9 +9,7 @@ if Code.ensure_loaded?(ConfigParser) do sso_start_url sso_region sso_account_id sso_role_name ) - @special_merge_keys ~w( - sso_session services - ) + @special_merge_keys ~w(sso_session) def security_credentials(profile_name) do config_credentials = profile_from_config(profile_name) From 69c1f2a0757e5b4efdb03fe9c33c24c34ab8a80d Mon Sep 17 00:00:00 2001 From: Robert Jenkins Date: Tue, 9 Apr 2024 18:29:42 -0600 Subject: [PATCH 07/48] Fix cache lookup when sso_session is used --- lib/ex_aws/credentials_ini/file.ex | 14 +++++++------- test/ex_aws/credentials_ini/file_test.exs | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/ex_aws/credentials_ini/file.ex b/lib/ex_aws/credentials_ini/file.ex index 304ad732..fd90eadf 100644 --- a/lib/ex_aws/credentials_ini/file.ex +++ b/lib/ex_aws/credentials_ini/file.ex @@ -6,7 +6,7 @@ if Code.ensure_loaded?(ConfigParser) do @valid_config_keys ~w( aws_access_key_id aws_secret_access_key aws_session_token region role_arn source_profile credential_source external_id mfa_serial role_session_name credential_process - sso_start_url sso_region sso_account_id sso_role_name + sso_start_url sso_region sso_account_id sso_role_name sso_session ) @special_merge_keys ~w(sso_session) @@ -21,9 +21,10 @@ if Code.ensure_loaded?(ConfigParser) do sso_account_id: sso_account_id, sso_role_name: sso_role_name } -> + sso_lookup_key = Map.get(config_credentials, :sso_session, sso_start_url) config = ExAws.Config.http_config(:sso) - case get_sso_role_credentials(sso_start_url, sso_account_id, sso_role_name, config) do + case get_sso_role_credentials(sso_lookup_key, sso_account_id, sso_role_name, config) do {:ok, sso_creds} -> {:ok, Map.merge(sso_creds, shared_credentials)} {:error, _} = err -> err end @@ -41,9 +42,9 @@ if Code.ensure_loaded?(ConfigParser) do end end - defp get_sso_role_credentials(sso_start_url, sso_account_id, sso_role_name, config) do + defp get_sso_role_credentials(sso_lookup_key, sso_account_id, sso_role_name, config) do with {_, {:ok, sso_cache_content}} <- - {:read, File.read(get_sso_cache_file(sso_start_url))}, + {:read, File.read(get_sso_cache_file(sso_lookup_key))}, {_, {:ok, %{"expiresAt" => expires_at, "accessToken" => access_token, "region" => region}}} <- {:decode, config[:json_codec].decode(sso_cache_content)}, @@ -70,8 +71,8 @@ if Code.ensure_loaded?(ConfigParser) do end end - defp get_sso_cache_file(sso_start_url) do - hash = :crypto.hash(:sha, sso_start_url) |> Base.encode16() |> String.downcase() + defp get_sso_cache_file(sso_lookup_key) do + hash = :crypto.hash(:sha, sso_lookup_key) |> Base.encode16() |> String.downcase() System.user_home() |> Path.join(".aws/sso/cache/#{hash}.json") @@ -252,7 +253,6 @@ if Code.ensure_loaded?(ConfigParser) do case full_config do %{^merge_section => config} -> Map.merge(config, acc) - |> Map.delete(key) _ -> acc diff --git a/test/ex_aws/credentials_ini/file_test.exs b/test/ex_aws/credentials_ini/file_test.exs index 32c04645..e18bf706 100644 --- a/test/ex_aws/credentials_ini/file_test.exs +++ b/test/ex_aws/credentials_ini/file_test.exs @@ -53,6 +53,7 @@ defmodule ExAws.CredentialsIni.File.FileTest do config = ExAws.CredentialsIni.File.parse_ini_file({:ok, example_config}, "default") + assert config.sso_session == "somecompany" assert config.sso_start_url == "https://start.us-gov-home.awsapps.com/directory/somecompany" assert config.sso_region == "us-gov-west-1" assert config.sso_account_id == "123456789101" From cf040035c2801560e51a2bb70766b008f1409440 Mon Sep 17 00:00:00 2001 From: Robert Jenkins Date: Tue, 9 Apr 2024 18:51:24 -0600 Subject: [PATCH 08/48] var name change --- lib/ex_aws/credentials_ini/file.ex | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ex_aws/credentials_ini/file.ex b/lib/ex_aws/credentials_ini/file.ex index fd90eadf..9ae3932e 100644 --- a/lib/ex_aws/credentials_ini/file.ex +++ b/lib/ex_aws/credentials_ini/file.ex @@ -21,10 +21,10 @@ if Code.ensure_loaded?(ConfigParser) do sso_account_id: sso_account_id, sso_role_name: sso_role_name } -> - sso_lookup_key = Map.get(config_credentials, :sso_session, sso_start_url) + sso_cache_key = Map.get(config_credentials, :sso_session, sso_start_url) config = ExAws.Config.http_config(:sso) - case get_sso_role_credentials(sso_lookup_key, sso_account_id, sso_role_name, config) do + case get_sso_role_credentials(sso_cache_key, sso_account_id, sso_role_name, config) do {:ok, sso_creds} -> {:ok, Map.merge(sso_creds, shared_credentials)} {:error, _} = err -> err end @@ -42,9 +42,9 @@ if Code.ensure_loaded?(ConfigParser) do end end - defp get_sso_role_credentials(sso_lookup_key, sso_account_id, sso_role_name, config) do + defp get_sso_role_credentials(sso_cache_key, sso_account_id, sso_role_name, config) do with {_, {:ok, sso_cache_content}} <- - {:read, File.read(get_sso_cache_file(sso_lookup_key))}, + {:read, File.read(get_sso_cache_file(sso_cache_key))}, {_, {:ok, %{"expiresAt" => expires_at, "accessToken" => access_token, "region" => region}}} <- {:decode, config[:json_codec].decode(sso_cache_content)}, @@ -71,8 +71,8 @@ if Code.ensure_loaded?(ConfigParser) do end end - defp get_sso_cache_file(sso_lookup_key) do - hash = :crypto.hash(:sha, sso_lookup_key) |> Base.encode16() |> String.downcase() + defp get_sso_cache_file(sso_cache_key) do + hash = :crypto.hash(:sha, sso_cache_key) |> Base.encode16() |> String.downcase() System.user_home() |> Path.join(".aws/sso/cache/#{hash}.json") From bd8a6acb264e4b65a8906109ae230a983c7e9f01 Mon Sep 17 00:00:00 2001 From: Lee Marlow Date: Thu, 11 Apr 2024 21:42:43 -0600 Subject: [PATCH 09/48] Update locations regions to match https://docs.aws.amazon.com/location/latest/developerguide/location-regions.html 2024-04-11 --- priv/endpoints.exs | 45 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 731f1d12..7005bc9b 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -2528,65 +2528,90 @@ chime_voice_regions = [ "endpoints" => %{ "us-east-1" => %{}, "us-east-2" => %{}, - "us-west-1" => %{}, + "us-west-2" => %{}, "eu-north-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, + "eu-west-2" => %{}, "ap-northeast-1" => %{}, + "ap-south-1" => %{}, "ap-southeast-1" => %{}, - "ap-southeast-2" => %{} + "ap-southeast-2" => %{}, + "ca-central-1" => %{}, + "sa-east-1" => %{}, + "us-gov-west-1" => %{} } }, "maps.geo" => %{ "endpoints" => %{ "us-east-1" => %{}, "us-east-2" => %{}, - "us-west-1" => %{}, + "us-west-2" => %{}, "eu-north-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, + "eu-west-2" => %{}, "ap-northeast-1" => %{}, + "ap-south-1" => %{}, "ap-southeast-1" => %{}, - "ap-southeast-2" => %{} + "ap-southeast-2" => %{}, + "ca-central-1" => %{}, + "sa-east-1" => %{}, + "us-gov-west-1" => %{} } }, "geofencing.geo" => %{ "endpoints" => %{ "us-east-1" => %{}, "us-east-2" => %{}, - "us-west-1" => %{}, + "us-west-2" => %{}, "eu-north-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, + "eu-west-2" => %{}, "ap-northeast-1" => %{}, + "ap-south-1" => %{}, "ap-southeast-1" => %{}, - "ap-southeast-2" => %{} + "ap-southeast-2" => %{}, + "ca-central-1" => %{}, + "sa-east-1" => %{}, + "us-gov-west-1" => %{} } }, "tracking.geo" => %{ "endpoints" => %{ "us-east-1" => %{}, "us-east-2" => %{}, - "us-west-1" => %{}, + "us-west-2" => %{}, "eu-north-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, + "eu-west-2" => %{}, "ap-northeast-1" => %{}, + "ap-south-1" => %{}, "ap-southeast-1" => %{}, - "ap-southeast-2" => %{} + "ap-southeast-2" => %{}, + "ca-central-1" => %{}, + "sa-east-1" => %{}, + "us-gov-west-1" => %{} } }, "routes.geo" => %{ "endpoints" => %{ "us-east-1" => %{}, "us-east-2" => %{}, - "us-west-1" => %{}, + "us-west-2" => %{}, "eu-north-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, + "eu-west-2" => %{}, "ap-northeast-1" => %{}, + "ap-south-1" => %{}, "ap-southeast-1" => %{}, - "ap-southeast-2" => %{} + "ap-southeast-2" => %{}, + "ca-central-1" => %{}, + "sa-east-1" => %{}, + "us-gov-west-1" => %{} } }, "sso" => %{ From e3b6fc9d26f0059ef0d11b0fa5371443c53f17ac Mon Sep 17 00:00:00 2001 From: Sebastien Perreault Date: Fri, 19 Apr 2024 15:37:09 -0400 Subject: [PATCH 10/48] Update endpoints.exs to support ca-west-1 --- priv/endpoints.exs | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 731f1d12..c7066814 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -69,6 +69,7 @@ chime_voice_regions = [ "ap-southeast-2" => %{"description" => "Asia Pacific (Sydney)"}, "ap-southeast-3" => %{"description" => "Asia Pacific (Jakarta)"}, "ca-central-1" => %{"description" => "Canada (Central)"}, + "ca-west-1" => %{"description" => "Canada (Central)"}, "eu-central-1" => %{"description" => "EU (Frankfurt)"}, "eu-west-1" => %{"description" => "EU (Ireland)"}, "eu-west-2" => %{"description" => "EU (London)"}, @@ -215,6 +216,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -237,6 +239,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -356,6 +359,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -381,6 +385,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{"sslCommonName" => "{service}.{region}.{dnsSuffix}"}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -435,6 +440,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -476,6 +482,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -497,6 +504,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -518,6 +526,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -563,6 +572,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -585,6 +595,8 @@ chime_voice_regions = [ "ap-south-1" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, + "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -640,6 +652,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -662,6 +675,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -691,6 +705,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -721,6 +736,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -742,6 +758,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -831,6 +848,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -982,6 +1000,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1049,6 +1068,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1083,6 +1103,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1115,6 +1136,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-central-2" => %{}, "eu-west-1" => %{}, @@ -1178,6 +1200,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1266,6 +1289,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1382,6 +1406,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1416,6 +1441,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1437,6 +1463,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1457,6 +1484,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1649,6 +1677,7 @@ chime_voice_regions = [ "signatureVersions" => ["s3", "s3v4"] }, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-central-2" => %{}, "eu-west-1" => %{ @@ -1755,6 +1784,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1785,6 +1815,7 @@ chime_voice_regions = [ "ap-southeast-2" => %{}, "aws-global" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1828,6 +1859,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-central-2" => %{}, "eu-west-1" => %{}, @@ -1871,6 +1903,7 @@ chime_voice_regions = [ "us-east-1" => %{}, "us-west-1" => %{}, "us-west-2" => %{}, + "ca-central-1" => %{}, "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "eu-west-1" => %{}, @@ -1920,6 +1953,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1941,6 +1975,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -1984,6 +2019,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2009,6 +2045,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2079,6 +2116,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2107,6 +2145,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "us-east-1" => %{}, @@ -2131,6 +2170,7 @@ chime_voice_regions = [ "ap-southeast-2" => %{}, "ap-northeast-1" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2150,6 +2190,8 @@ chime_voice_regions = [ "endpoints" => %{ "ap-northeast-2" => %{}, "ap-southeast-2" => %{}, + "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "us-east-1" => %{}, @@ -2166,6 +2208,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2215,6 +2258,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2236,6 +2280,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2273,6 +2318,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2291,6 +2337,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-central-2" => %{}, "eu-west-1" => %{}, @@ -2327,6 +2374,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2347,6 +2395,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2395,6 +2444,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2414,6 +2464,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, @@ -2477,6 +2528,7 @@ chime_voice_regions = [ "ap-southeast-1" => %{}, "ap-southeast-2" => %{}, "ca-central-1" => %{}, + "ca-west-1" => %{}, "eu-central-1" => %{}, "eu-west-1" => %{}, "eu-west-2" => %{}, From 8fbe33dfc0a1f0b68f95188e89d65cc4e4518284 Mon Sep 17 00:00:00 2001 From: Sebastien Perreault Date: Mon, 22 Apr 2024 10:41:19 -0400 Subject: [PATCH 11/48] Updated Canada regions with city in endpoints.exs --- priv/endpoints.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index c7066814..e7ff98fe 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -68,8 +68,8 @@ chime_voice_regions = [ "ap-southeast-1" => %{"description" => "Asia Pacific (Singapore)"}, "ap-southeast-2" => %{"description" => "Asia Pacific (Sydney)"}, "ap-southeast-3" => %{"description" => "Asia Pacific (Jakarta)"}, - "ca-central-1" => %{"description" => "Canada (Central)"}, - "ca-west-1" => %{"description" => "Canada (Central)"}, + "ca-central-1" => %{"description" => "Canada (Montreal)"}, + "ca-west-1" => %{"description" => "Canada (Calgary)"}, "eu-central-1" => %{"description" => "EU (Frankfurt)"}, "eu-west-1" => %{"description" => "EU (Ireland)"}, "eu-west-2" => %{"description" => "EU (London)"}, From 96d22a18e2adbe542fc9b60e6fcaf0c06d235347 Mon Sep 17 00:00:00 2001 From: ruslandoga <67764432+ruslandoga@users.noreply.github.com> Date: Thu, 9 May 2024 11:36:12 +0700 Subject: [PATCH 12/48] allow iodata body in s3 requests --- lib/ex_aws/operation/s3.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ex_aws/operation/s3.ex b/lib/ex_aws/operation/s3.ex index cf2cfba4..9af75145 100644 --- a/lib/ex_aws/operation/s3.ex +++ b/lib/ex_aws/operation/s3.ex @@ -47,7 +47,7 @@ defmodule ExAws.Operation.S3 do defp put_content_length_header(headers, "", :get), do: headers defp put_content_length_header(headers, body, _) do - Map.put(headers, "content-length", byte_size(body) |> Integer.to_string()) + Map.put(headers, "content-length", IO.iodata_length(body) |> Integer.to_string()) end @spec add_bucket_to_path(operation :: ExAws.Operation.S3.t(), config :: map) :: From 78e524a237f8722bb3399f792b29119a30dd64f1 Mon Sep 17 00:00:00 2001 From: ruslandoga <67764432+ruslandoga@users.noreply.github.com> Date: Thu, 9 May 2024 11:49:25 +0700 Subject: [PATCH 13/48] add example docker command to run dynamodb locally --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a1de313c..71489db6 100644 --- a/README.md +++ b/README.md @@ -260,7 +260,13 @@ config :ex_aws, :retries, ## Testing If you want to run `mix test`, you'll need to have a local `dynamodb` running -on port 8000. See [Setting up DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html). +on port 8000: + +```console +docker run --name dynamodb -d -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -port 8000 +``` + +For more info please see [Setting up DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html). The redirect test will intentionally cause a warning to be issued. From 333b7008fc95711d19c2151a052872a16135334f Mon Sep 17 00:00:00 2001 From: ruslandoga <67764432+ruslandoga@users.noreply.github.com> Date: Thu, 9 May 2024 11:54:26 +0700 Subject: [PATCH 14/48] upgrade elixir and erlang to latest versions, add elixir 1.16 to ci --- .github/workflows/on-push.yml | 3 +++ .tool-versions | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 8c6f1a28..232f7259 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -11,6 +11,9 @@ jobs: strategy: matrix: include: + - pair: + otp: 26.x + elixir: 1.16.x - pair: otp: 26.x elixir: 1.15.x diff --git a/.tool-versions b/.tool-versions index a013f295..510c6f82 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -elixir 1.15 -erlang 26.1.2 +elixir 1.16.2-otp-26 +erlang 26.2.5 From d1256186a874131cf9065cce0110643a7a76facc Mon Sep 17 00:00:00 2001 From: ruslandoga Date: Thu, 9 May 2024 14:12:47 +0700 Subject: [PATCH 15/48] rm on stop, no name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 71489db6..f6a8e30a 100644 --- a/README.md +++ b/README.md @@ -263,7 +263,7 @@ If you want to run `mix test`, you'll need to have a local `dynamodb` running on port 8000: ```console -docker run --name dynamodb -d -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -port 8000 +docker run --rm -d -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -port 8000 ``` For more info please see [Setting up DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html). From 945f61558086933cf9133fed0466f7bf294fae45 Mon Sep 17 00:00:00 2001 From: Aron Sisask Date: Wed, 15 May 2024 19:56:42 +0300 Subject: [PATCH 16/48] Add support for EventBridge Pipes service Endpoints listed in: https://docs.aws.amazon.com/general/latest/gr/ev_pipes.html --- priv/endpoints.exs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 731f1d12..eab098d1 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -2609,6 +2609,31 @@ chime_voice_regions = [ "us-west-1" => %{}, "us-west-2" => %{} } + }, + "pipes" => %{ + "endpoints" => %{ + "af-south-1" => %{}, + "ap-northeast-1" => %{}, + "ap-northeast-2" => %{}, + "ap-east-1" => %{}, + "ap-south-1" => %{}, + "ap-southeast-1" => %{}, + "ap-southeast-2" => %{}, + "ap-southeast-3" => %{}, + "ca-central-1" => %{}, + "eu-central-1" => %{}, + "eu-west-1" => %{}, + "eu-west-2" => %{}, + "eu-west-3" => %{}, + "eu-north-1" => %{}, + "eu-south-1" => %{}, + "me-south-1" => %{}, + "sa-east-1" => %{}, + "us-east-1" => %{}, + "us-east-2" => %{}, + "us-west-1" => %{}, + "us-west-2" => %{} + } } } }, From bc36568559b03f3d694fce4ce3fe0a0c069dbc18 Mon Sep 17 00:00:00 2001 From: Mark Goody Date: Fri, 31 May 2024 10:46:02 +0100 Subject: [PATCH 17/48] Add more regions for Pinpoint use --- priv/endpoints.exs | 55 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 731f1d12..f408ebeb 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -249,9 +249,62 @@ chime_voice_regions = [ "us-west-2" => %{} } }, + "mobiletargeting" => %{ + "endpoints" => %{ + "us-east-1" => %{ + "hostname" => "pinpoint.us-east-1.amazonaws.com" + }, + "us-east-2" => %{ + "hostname" => "pinpoint.us-east-2.amazonaws.com" + }, + "us-west-2" => %{ + "hostname" => "pinpoint.us-west-1.amazonaws.com" + }, + "ap-south-1" => %{ + "hostname" => "pinpoint.ap-south-1.amazonaws.com" + }, + "ap-northeast-1" => %{ + "hostname" => "pinpoint.ap-northeast-1.amazonaws.com" + }, + "ap-northeast-2" => %{ + "hostname" => "pinpoint.ap-northeast-2.amazonaws.com" + }, + "ap-southeast-1" => %{ + "hostname" => "pinpoint.ap-southeast-1.amazonaws.com" + }, + "ap-southeast-2" => %{ + "hostname" => "pinpoint.ap-southeast-2.amazonaws.com" + }, + "ca-central-1" => %{ + "hostname" => "pinpoint.ca-central-1.amazonaws.com" + }, + "eu-central-1" => %{ + "hostname" => "pinpoint.eu-central-1.amazonaws.com" + }, + "eu-west-1" => %{ + "hostname" => "pinpoint.eu-west-1.amazonaws.com" + }, + "eu-west-2" => %{ + "hostname" => "pinpoint.eu-west-2.amazonaws.com" + } + } + }, "pinpoint" => %{ "defaults" => %{"credentialScope" => %{"service" => "mobiletargeting"}}, - "endpoints" => %{"us-east-1" => %{}} + "endpoints" => %{ + "us-east-1" => %{}, + "us-east-2" => %{}, + "us-west-2" => %{}, + "ap-south-1" => %{}, + "ap-northeast-1" => %{}, + "ap-northeast-2" => %{}, + "ap-southeast-1" => %{}, + "ap-southeast-2" => %{}, + "ca-central-1" => %{}, + "eu-central-1" => %{}, + "eu-west-1" => %{}, + "eu-west-2" => %{} + } }, "iam" => %{ "endpoints" => %{ From d8d1fe09ca0fd351817c816559590e0283249364 Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Tue, 4 Jun 2024 12:06:42 +1000 Subject: [PATCH 18/48] Drop support for Elixir 1.11 --- .github/workflows/on-push.yml | 6 ------ mix.exs | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 8c6f1a28..2eec608c 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -36,9 +36,6 @@ jobs: - pair: otp: 24.x elixir: 1.12.x - - pair: - otp: 24.x - elixir: 1.11.x - pair: otp: 23.x elixir: 1.14.x @@ -48,9 +45,6 @@ jobs: - pair: otp: 23.x elixir: 1.12.x - - pair: - otp: 23.x - elixir: 1.11.x steps: - uses: actions/checkout@v4 diff --git a/mix.exs b/mix.exs index 49259a64..a00303ce 100644 --- a/mix.exs +++ b/mix.exs @@ -8,7 +8,7 @@ defmodule ExAws.Mixfile do [ app: :ex_aws, version: @version, - elixir: "~> 1.11", + elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), description: "Generic AWS client", name: "ExAws", From efa170e907ef2df1cd101fce8c4266f099943f17 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 02:11:53 +0000 Subject: [PATCH 19/48] Bump ex_doc from 0.30.9 to 0.34.0 Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.30.9 to 0.34.0. - [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.30.9...v0.34.0) --- updated-dependencies: - dependency-name: ex_doc dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- mix.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mix.lock b/mix.lock index 8e9199ce..1538279a 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.37", "2ad73550e27c8946648b06905a57e4d454e4d7229c2dafa72a0348c99d8be5f7", [:mix], [], "hexpm", "6b19783f2802f039806f375610faa22da130b8edc21209d0bff47918bb48360e"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, - "ex_doc": {:hex, :ex_doc, "0.30.9", "d691453495c47434c0f2052b08dd91cc32bc4e1a218f86884563448ee2502dd2", [:mix], [{:earmark_parser, "~> 1.4.31", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "d7aaaf21e95dc5cddabf89063327e96867d00013963eadf2c6ad135506a8bc10"}, + "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"}, "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"}, @@ -17,16 +17,16 @@ "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"}, "jsx": {:hex, :jsx, "3.1.0", "d12516baa0bb23a59bb35dccaf02a1bd08243fcbb9efe24f2d9d056ccff71268", [:rebar3], [], "hexpm", "0c5cc8fdc11b53cc25cf65ac6705ad39e54ecc56d1c22e4adb8f5a53fb9427f3"}, - "makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"}, - "makeup_elixir": {:hex, :makeup_elixir, "0.16.1", "cc9e3ca312f1cfeccc572b37a09980287e243648108384b97ff2b76e505c3555", [: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", "e127a341ad1b209bd80f7bd1620a15693a9908ed780c3b763bccf7d200c767c6"}, - "makeup_erlang": {:hex, :makeup_erlang, "0.1.2", "ad87296a092a46e03b7e9b0be7631ddcf64c790fa68a9ef5323b6cbb36affc72", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f3f5a1ca93ce6e092d92b6d9c049bcda58a3b617a8d888f8e7231c85630e8108"}, + "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"}, + "makeup_erlang": {:hex, :makeup_erlang, "1.0.0", "6f0eff9c9c489f26b69b61440bf1b238d95badae49adac77973cbacae87e3c2e", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "ea7a9307de9d1548d2a72d299058d1fd2339e3d398560a0e46c27dab4891e4d2"}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"}, "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"}, "nimble_options": {:hex, :nimble_options, "1.0.2", "92098a74df0072ff37d0c12ace58574d26880e522c22801437151a159392270e", [:mix], [], "hexpm", "fd12a8db2021036ce12a309f26f564ec367373265b53e25403f0ee697380f1b8"}, - "nimble_parsec": {:hex, :nimble_parsec, "1.3.1", "2c54013ecf170e249e9291ed0a62e5832f70a476c61da16f6aac6dca0189f2af", [:mix], [], "hexpm", "2682e3c0b2eb58d90c6375fc0cc30bc7be06f365bf72608804fb9cffa5e1b167"}, + "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"}, "plug": {:hex, :plug, "1.15.1", "b7efd81c1a1286f13efb3f769de343236bd8b7d23b4a9f40d3002fc39ad8f74c", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "459497bd94d041d98d948054ec6c0b76feacd28eec38b219ca04c0de13c79d30"}, From 27948a9df537efeff654ff273653d1f92d0761f6 Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Tue, 4 Jun 2024 12:31:42 +1000 Subject: [PATCH 20/48] Move lint check to latest version --- .github/workflows/on-push.yml | 2 +- .tool-versions | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 232f7259..6d38af5e 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -14,10 +14,10 @@ jobs: - pair: otp: 26.x elixir: 1.16.x + lint: lint - pair: otp: 26.x elixir: 1.15.x - lint: lint - pair: otp: 25.x elixir: 1.15.x diff --git a/.tool-versions b/.tool-versions index 510c6f82..de9b652f 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -elixir 1.16.2-otp-26 +elixir 1.16.3-otp-26 erlang 26.2.5 From 7e9f8c1c34deba09d0e286ef8071319187e8bf03 Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Tue, 4 Jun 2024 12:39:30 +1000 Subject: [PATCH 21/48] Bump verison and update changelog (v2.5.3) --- CHANGELOG.md | 10 ++++++++++ mix.exs | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bc68294..39c6ffd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +v2.5.3 (2024-06-04) +- Endpoint and region updates +- Add support for Elixir 1.16 +- Drop support for Elixir 1.11 +- Add support for `sso_session` in `.aws/config` +- Add support for EventBridge Pipes service +- Add support for Pinpoint Mobiletargeting service +- Add docs for running DynamoDB locally +- Allow iodata body in s3 requests + v2.5.2 (2024-03-19) - Endpoint updates diff --git a/mix.exs b/mix.exs index a00303ce..0f269fa1 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule ExAws.Mixfile do use Mix.Project @source_url "https://github.com/ex-aws/ex_aws" - @version "2.5.2" + @version "2.5.3" def project do [ @@ -59,6 +59,7 @@ defmodule ExAws.Mixfile do [ description: description(), files: ["priv", "lib", "config", "mix.exs", "CHANGELOG.md", "README*", "LICENSE"], + exclude_patterns: ["_build", "deps", "test", "*~"], maintainers: ["Bernard Duggan", "Ben Wilson"], licenses: ["MIT"], links: %{ From 8020fa1c0a7221c3931a91ec8089e52c868667c0 Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Tue, 4 Jun 2024 12:46:28 +1000 Subject: [PATCH 22/48] Whoops, should have been 2.5.4 --- CHANGELOG.md | 5 ++++- mix.exs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39c6ffd7..e6a8b81a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -v2.5.3 (2024-06-04) +v2.5.4 (2024-06-04) - Endpoint and region updates - Add support for Elixir 1.16 - Drop support for Elixir 1.11 @@ -8,6 +8,9 @@ v2.5.3 (2024-06-04) - Add docs for running DynamoDB locally - Allow iodata body in s3 requests +v2.5.3 (2024-03-20) +- Add mappings for Chime + v2.5.2 (2024-03-19) - Endpoint updates diff --git a/mix.exs b/mix.exs index 0f269fa1..5f96ac63 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule ExAws.Mixfile do use Mix.Project @source_url "https://github.com/ex-aws/ex_aws" - @version "2.5.3" + @version "2.5.4" def project do [ From e43b40df7911f9f97c1a16dc3a9659c5b9bee16c Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 20 Jun 2024 10:46:00 -0400 Subject: [PATCH 23/48] 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 24/48] 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 25/48] 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 26/48] 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 27/48] 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 28/48] 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 29/48] 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 30/48] 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 31/48] 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 32/48] 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 33/48] 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 34/48] 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 35/48] 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 36/48] 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 37/48] 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 38/48] 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 From fe1700e686a645e8ce821aea43978fa552d72225 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Tue, 20 Aug 2024 19:32:40 -0400 Subject: [PATCH 39/48] support sso credentials with profile in section name --- lib/ex_aws/credentials_ini/file.ex | 4 ++ test/ex_aws/credentials_ini/file_test.exs | 53 +++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/lib/ex_aws/credentials_ini/file.ex b/lib/ex_aws/credentials_ini/file.ex index 9ae3932e..9defe235 100644 --- a/lib/ex_aws/credentials_ini/file.ex +++ b/lib/ex_aws/credentials_ini/file.ex @@ -234,6 +234,10 @@ if Code.ensure_loaded?(ConfigParser) do merge_special_keys(full, config) |> strip_key_prefix() + {:ok, %{("profile " <> ^profile_name) => config} = full} -> + merge_special_keys(full, config) + |> strip_key_prefix() + {:ok, %{}} -> %{} diff --git a/test/ex_aws/credentials_ini/file_test.exs b/test/ex_aws/credentials_ini/file_test.exs index e18bf706..dc8d3fc5 100644 --- a/test/ex_aws/credentials_ini/file_test.exs +++ b/test/ex_aws/credentials_ini/file_test.exs @@ -60,6 +60,29 @@ defmodule ExAws.CredentialsIni.File.FileTest do assert config.sso_role_name == "SomeRole" end + test "config file is parsed with non-default sso config profile that uses sso_session" do + example_config = """ + [sso-session somecompany] + sso_start_url = https://start.us-gov-home.awsapps.com/directory/somecompany + sso_region = us-gov-west-1 + + [profile somecompany] + sso_session = somecompany + sso_account_id = 123456789101 + sso_role_name = SomeRole + region = us-gov-west-1 + output = json + """ + + config = ExAws.CredentialsIni.File.parse_ini_file({:ok, example_config}, "somecompany") + + assert config.sso_session == "somecompany" + assert config.sso_start_url == "https://start.us-gov-home.awsapps.com/directory/somecompany" + assert config.sso_region == "us-gov-west-1" + assert config.sso_account_id == "123456789101" + assert config.sso_role_name == "SomeRole" + end + test "{:system} in profile name gets dynamic profile name" do System.put_env("AWS_PROFILE", "custom-profile") @@ -79,6 +102,36 @@ defmodule ExAws.CredentialsIni.File.FileTest do assert credentials.security_token == "TESTTOKEN" end + test "{:system} in profile name gets dynamic profile name using sso config" do + System.put_env("AWS_PROFILE", "custom-profile") + + example_credentials = """ + [sso-session somecompany] + sso_start_url = https://start.us-gov-home.awsapps.com/directory/somecompany + sso_region = us-gov-west-1 + + [profile custom-profile] + sso_session = somecompany + sso_account_id = 123456789101 + sso_role_name = SomeRole + region = us-gov-west-1 + output = json + """ + + credentials = + ExAws.CredentialsIni.File.parse_ini_file({:ok, example_credentials}, :system) + |> ExAws.CredentialsIni.File.replace_token_key() + + assert credentials.sso_session == "somecompany" + + assert credentials.sso_start_url == + "https://start.us-gov-home.awsapps.com/directory/somecompany" + + assert credentials.sso_region == "us-gov-west-1" + assert credentials.sso_account_id == "123456789101" + assert credentials.sso_role_name == "SomeRole" + end + test "config file is parsed" do example_config = """ [default] From 6d03db06739572345d3d017c3824d135383c33df Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Tue, 10 Sep 2024 14:39:12 +1000 Subject: [PATCH 40/48] Fix compilation on Elixir 1.13 --- lib/ex_aws/credentials_ini/file.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ex_aws/credentials_ini/file.ex b/lib/ex_aws/credentials_ini/file.ex index 9defe235..41f1f3b1 100644 --- a/lib/ex_aws/credentials_ini/file.ex +++ b/lib/ex_aws/credentials_ini/file.ex @@ -227,6 +227,8 @@ if Code.ensure_loaded?(ConfigParser) do end def parse_ini_file({:ok, contents}, profile_name) do + composite_key = "profile " <> profile_name + contents |> ConfigParser.parse_string() |> case do @@ -234,7 +236,7 @@ if Code.ensure_loaded?(ConfigParser) do merge_special_keys(full, config) |> strip_key_prefix() - {:ok, %{("profile " <> ^profile_name) => config} = full} -> + {:ok, %{^composite_key => config} = full} -> merge_special_keys(full, config) |> strip_key_prefix() From 25346fd816b6ef34852ccb146c18c8250c979905 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 04:42:48 +0000 Subject: [PATCH 41/48] Bump req from 0.4.5 to 0.5.6 Bumps [req](https://github.com/wojtekmach/req) from 0.4.5 to 0.5.6. - [Release notes](https://github.com/wojtekmach/req/releases) - [Changelog](https://github.com/wojtekmach/req/blob/main/CHANGELOG.md) - [Commits](https://github.com/wojtekmach/req/compare/v0.4.5...v0.5.6) --- updated-dependencies: - dependency-name: req dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- mix.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mix.lock b/mix.lock index 730e556b..ed6266a7 100644 --- a/mix.lock +++ b/mix.lock @@ -11,9 +11,9 @@ "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.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"}, + "finch": {:hex, :finch, "0.19.0", "c644641491ea854fc5c1bbaef36bfc764e3f08e7185e1f084e35e0672241b76d", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.6.2 or ~> 1.7", [hex: :mint, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4 or ~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 1.1", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "fc5324ce209125d1e2fa0fcd2634601c52a787aff1cd33ee833664a5af4ea2b6"}, "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"}, + "hpax": {:hex, :hpax, "1.0.0", "28dcf54509fe2152a3d040e4e3df5b265dcb6cb532029ecbacf4ce52caea3fd2", [:mix], [], "hexpm", "7f1314731d711e2ca5fdc7fd361296593fc2542570b3105595bb0bc6d0fad601"}, "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.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"}, @@ -21,20 +21,20 @@ "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"}, "makeup_erlang": {:hex, :makeup_erlang, "1.0.0", "6f0eff9c9c489f26b69b61440bf1b238d95badae49adac77973cbacae87e3c2e", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "ea7a9307de9d1548d2a72d299058d1fd2339e3d398560a0e46c27dab4891e4d2"}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"}, - "mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"}, + "mime": {:hex, :mime, "2.0.6", "8f18486773d9b15f95f4f4f1e39b710045fa1de891fada4516559967276e4dc2", [:mix], [], "hexpm", "c9945363a6b26d747389aac3643f8e0e09d30499a138ad64fe8fd1d13d9b153e"}, "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"}, + "mint": {:hex, :mint, "1.6.2", "af6d97a4051eee4f05b5500671d47c3a67dac7386045d87a904126fd4bbcea2e", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1 or ~> 0.2.0 or ~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "5ee441dffc1892f1ae59127f74afe8fd82fda6587794278d924e4d90ea3d63f9"}, "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_options": {:hex, :nimble_options, "1.1.1", "e3a492d54d85fc3fd7c5baf411d9d2852922f66e69476317787a7b2bb000a61b", [:mix], [], "hexpm", "821b2470ca9442c4b6984882fe9bb0389371b8ddec4d45a9504f00a66f650b44"}, "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"}, + "nimble_pool": {:hex, :nimble_pool, "1.1.0", "bf9c29fbdcba3564a8b800d1eeb5a3c58f36e1e11d7b7fb2e084a643f645f06b", [:mix], [], "hexpm", "af2e4e6b34197db81f7aad230c1118eac993acc0dae6bc83bac0126d4ae0813a"}, "parse_trans": {:hex, :parse_trans, "3.4.1", "6e6aa8167cb44cc8f39441d05193be6e6f4e7c2946cb2759f015f8c56b76e5ff", [:rebar3], [], "hexpm", "620a406ce75dada827b82e453c19cf06776be266f5a67cff34e1ef2cbb60e49a"}, - "plug": {:hex, :plug, "1.15.1", "b7efd81c1a1286f13efb3f769de343236bd8b7d23b4a9f40d3002fc39ad8f74c", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "459497bd94d041d98d948054ec6c0b76feacd28eec38b219ca04c0de13c79d30"}, + "plug": {:hex, :plug, "1.16.1", "40c74619c12f82736d2214557dedec2e9762029b2438d6d175c5074c933edc9d", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "a13ff6b9006b03d7e33874945b2755253841b238c34071ed85b0e86057f8cddc"}, "plug_cowboy": {:hex, :plug_cowboy, "2.6.1", "9a3bbfceeb65eff5f39dab529e5cd79137ac36e913c02067dba3963a26efe9b2", [:mix], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:cowboy_telemetry, "~> 0.3", [hex: :cowboy_telemetry, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "de36e1a21f451a18b790f37765db198075c25875c64834bcc82d90b309eb6613"}, - "plug_crypto": {:hex, :plug_crypto, "2.0.0", "77515cc10af06645abbfb5e6ad7a3e9714f805ae118fa1a70205f80d2d70fe73", [:mix], [], "hexpm", "53695bae57cc4e54566d993eb01074e4d894b65a3766f1c43e2c61a1b0f45ea9"}, + "plug_crypto": {:hex, :plug_crypto, "2.1.0", "f44309c2b06d249c27c8d3f65cfe08158ade08418cf540fd4f72d4d6863abb7b", [:mix], [], "hexpm", "131216a4b030b8f8ce0f26038bc4421ae60e4bb95c5cf5395e1421437824c4fa"}, "ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"}, - "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"}, + "req": {:hex, :req, "0.5.6", "8fe1eead4a085510fe3d51ad854ca8f20a622aae46e97b302f499dfb84f726ac", [:mix], [{:brotli, "~> 0.3.1", [hex: :brotli, repo: "hexpm", optional: true]}, {:ezstd, "~> 1.0", [hex: :ezstd, repo: "hexpm", optional: true]}, {:finch, "~> 0.17", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mime, "~> 2.0.6 or ~> 2.1", [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", "cfaa8e720945d46654853de39d368f40362c2641c4b2153c886418914b372185"}, "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.3.0", "fedebbae410d715cf8e7062c96a1ef32ec22e764197f70cda73d82778d61e7a2", [:rebar3], [], "hexpm", "7015fc8919dbe63764f4b4b87a95b7c0996bd539e0d499be6ec9d7f3875b79e6"}, From 66a24e07fdf624ebc818b4706ebedfa4b758dfe1 Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Tue, 10 Sep 2024 14:58:52 +1000 Subject: [PATCH 42/48] Fix warning in endpoints --- priv/endpoints.exs | 1 - 1 file changed, 1 deletion(-) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 057dabfb..1d88e2f9 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -2313,7 +2313,6 @@ chime_voice_regions = [ "us-west-2" => %{}, "af-south-1" => %{}, "ap-east-1" => %{}, - "ap-south-2" => %{}, "ap-southeast-3" => %{}, "ap-south-1" => %{}, "ap-south-2" => %{}, From 45302490b7e63e69fd87845bd799de4687cd7a76 Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Tue, 10 Sep 2024 14:59:10 +1000 Subject: [PATCH 43/48] Update .gitignore and .tool-versions --- .gitignore | 3 ++- .tool-versions | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7b79a3c8..a8224c8e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ erl_crash.dump # IntelliJ IDEA files /.idea /exaws.iml -.elixir_ls \ No newline at end of file +.elixir_ls +*~ diff --git a/.tool-versions b/.tool-versions index de9b652f..7879e57e 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -elixir 1.16.3-otp-26 -erlang 26.2.5 +elixir 1.17.2 +erlang 27.0.1 From 821722c795c714a10ef74399054855ed6c02b8c3 Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Tue, 10 Sep 2024 15:04:30 +1000 Subject: [PATCH 44/48] Bump verison to v.2.5.5; update CHANGELOG --- CHANGELOG.md | 9 +++++++++ mix.exs | 7 +++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6a8b81a..ab2abae9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +v2.5.5 (2024-09-10) +- Endpoint updates +- Drop support for Elixir 1.12 +- Add support for Elixir 1.17 +- Add Req request backend +- Stop sending `content-length` header for DELETE and HEAD requests +- Fix handling of `[profile ]` blocks in config file +- Update test platform to Ubuntu 24.04 + v2.5.4 (2024-06-04) - Endpoint and region updates - Add support for Elixir 1.16 diff --git a/mix.exs b/mix.exs index e0befa3d..730734b4 100644 --- a/mix.exs +++ b/mix.exs @@ -2,13 +2,13 @@ defmodule ExAws.Mixfile do use Mix.Project @source_url "https://github.com/ex-aws/ex_aws" - @version "2.5.4" + @version "2.5.5" def project do [ app: :ex_aws, version: @version, - elixir: "~> 1.12", + elixir: "~> 1.13", elixirc_paths: elixirc_paths(Mix.env()), description: "Generic AWS client", name: "ExAws", @@ -39,7 +39,6 @@ defmodule ExAws.Mixfile do defp deps() do [ {:telemetry, "~> 0.4.3 or ~> 1.0"}, - # mime 2.x requires Elixir ~> 1.10 {:mime, "~> 1.2 or ~> 2.0"}, {:bypass, "~> 2.1", only: :test}, {:configparser_ex, "~> 4.0", optional: true}, @@ -72,7 +71,7 @@ defmodule ExAws.Mixfile do defp description do """ AWS client for Elixir. Currently supports Dynamo, DynamoStreams, EC2, - Firehose, Kinesis, KMS, Lambda, RRDS, Route53, S3, SES, SNS, SQS, STS + Firehose, Kinesis, KMS, Lambda, RRDS, Route53, S3, SES, SNS, SQS, STS and others. """ end From 2575dff1d5177895409390eab0afeddfea625068 Mon Sep 17 00:00:00 2001 From: Siim Liiser Date: Wed, 18 Sep 2024 14:42:53 +0300 Subject: [PATCH 45/48] Add Codeartifact to endpoints --- priv/endpoints.exs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 1d88e2f9..ce0d7bbc 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -168,6 +168,23 @@ chime_voice_regions = [ "us-west-2" => %{} } }, + "codeartifact" => %{ + "endpoints" => %{ + "us-east-1" => %{}, + "us-east-2" => %{}, + "us-west-2" => %{}, + "eu-west-1" => %{}, + "eu-west-2" => %{}, + "eu-west-3" => %{}, + "eu-central-1" => %{}, + "eu-north-1" => %{}, + "eu-south-1" => %{}, + "ap-southeast-1" => %{}, + "ap-southeast-2" => %{}, + "ap-northeast-1" => %{}, + "ap-south-1" => %{} + } + }, "firehose" => %{ "endpoints" => %{ "af-south-1" => %{}, From 8ebf057c56bf2eccfec604226202022d630f7a35 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:50:48 +0000 Subject: [PATCH 46/48] Bump dialyxir from 1.4.3 to 1.4.4 Bumps [dialyxir](https://github.com/jeremyjh/dialyxir) from 1.4.3 to 1.4.4. - [Release notes](https://github.com/jeremyjh/dialyxir/releases) - [Changelog](https://github.com/jeremyjh/dialyxir/blob/master/CHANGELOG.md) - [Commits](https://github.com/jeremyjh/dialyxir/compare/1.4.3...1.4.4) --- updated-dependencies: - dependency-name: dialyxir 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 ed6266a7..7b85330d 100644 --- a/mix.lock +++ b/mix.lock @@ -6,9 +6,9 @@ "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"}, "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"}, + "dialyxir": {:hex, :dialyxir, "1.4.4", "fb3ce8741edeaea59c9ae84d5cec75da00fa89fe401c72d6e047d11a61f65f70", [:mix], [{:erlex, ">= 0.2.7", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "cd6111e8017ccd563e65621a4d9a4a1c5cd333df30cebc7face8029cacb4eff6"}, "earmark_parser": {:hex, :earmark_parser, "1.4.40", "f3534689f6b58f48aa3a9ac850d4f05832654fe257bf0549c08cc290035f70d5", [:mix], [], "hexpm", "cdb34f35892a45325bad21735fadb88033bcb7c4c296a999bde769783f53e46a"}, - "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, + "erlex": {:hex, :erlex, "0.2.7", "810e8725f96ab74d17aac676e748627a07bc87eb950d2b83acd29dc047a30595", [:mix], [], "hexpm", "3ed95f79d1a844c3f6bf0cea61e0d5612a42ce56da9c03f01df538685365efb0"}, "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.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.19.0", "c644641491ea854fc5c1bbaef36bfc764e3f08e7185e1f084e35e0672241b76d", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.6.2 or ~> 1.7", [hex: :mint, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4 or ~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 1.1", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "fc5324ce209125d1e2fa0fcd2634601c52a787aff1cd33ee833664a5af4ea2b6"}, From 7388ff29cc0a447e36879b8e43b63a632351894f Mon Sep 17 00:00:00 2001 From: Akos Marton Date: Mon, 7 Oct 2024 14:58:45 +0200 Subject: [PATCH 47/48] Fix hostname of us-gov-west-1. --- priv/endpoints.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/priv/endpoints.exs b/priv/endpoints.exs index 1d88e2f9..025e89dc 100644 --- a/priv/endpoints.exs +++ b/priv/endpoints.exs @@ -3126,7 +3126,10 @@ chime_voice_regions = [ "hostname" => "kms-fips.us-gov-east-1.amazonaws.com", "credentialScope" => %{"region" => "us-gov-east-1"} }, - "us-gov-west-1" => %{} + "us-gov-west-1" => %{ + "hostname" => "kms-fips.us-gov-west-1.amazonaws.com", + "credentialScope" => %{"region" => "us-gov-west-1"} + } } }, "sms" => %{"endpoints" => %{"us-gov-east-1" => %{}, "us-gov-west-1" => %{}}}, From 3961ef51de3f9d1057d52c10655f016b2d682f82 Mon Sep 17 00:00:00 2001 From: Bernard Duggan Date: Wed, 9 Oct 2024 17:24:15 +1100 Subject: [PATCH 48/48] Bump version 2.5.6 --- CHANGELOG.md | 3 +++ mix.exs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab2abae9..27759b6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +v2.5.6 (2024-10-09) +- Endpoint updates + v2.5.5 (2024-09-10) - Endpoint updates - Drop support for Elixir 1.12 diff --git a/mix.exs b/mix.exs index 730734b4..0ead28b5 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule ExAws.Mixfile do use Mix.Project @source_url "https://github.com/ex-aws/ex_aws" - @version "2.5.5" + @version "2.5.6" def project do [