Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ex_cubic_ingestion/config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down