diff --git a/ex_cubic_ingestion/config/prod.exs b/ex_cubic_ingestion/config/prod.exs index 03867fa..b077d81 100644 --- a/ex_cubic_ingestion/config/prod.exs +++ b/ex_cubic_ingestion/config/prod.exs @@ -2,7 +2,6 @@ import Config config :ex_cubic_ingestion, ExCubicIngestion.Repo, show_sensitive_data_on_connection_error: false, - ssl: true, use_iam_token: true config :ex_cubic_ingestion, diff --git a/ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex b/ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex index 0958e71..764b461 100644 --- a/ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex +++ b/ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex @@ -27,7 +27,7 @@ defmodule ExCubicIngestion.Repo do # update password with token and update ssl options (if set) to ref rds cert Keyword.merge(config, password: token, - ssl_opts: [ + ssl: [ cacertfile: Application.app_dir(:ex_cubic_ingestion, ["priv", "aws-cert-bundle.pem"]), verify: :verify_peer, server_name_indication: String.to_charlist(hostname), diff --git a/ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs b/ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs index 54e7e04..640918c 100644 --- a/ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs +++ b/ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs @@ -58,7 +58,7 @@ defmodule ExCubicIngestion.RepoTest do ] # assert the ssl options are expected - assert Keyword.fetch!(connection_config, :ssl_opts) == expected_ssl_opts + assert Keyword.fetch!(connection_config, :ssl) == expected_ssl_opts end end end