Packages

This provides a way to store environment variables into AWS SSM keystore backed by KMS encryption. Then you can invoke a function that will update your environment variables without recompiling or restarting your application.

Current section

Files

Jump to
dynamic_env lib aws config.ex
Raw

lib/aws/config.ex

defmodule DynamicEnv.AWS.Config do
def config do
%AWS.Client{
access_key_id: Application.get_env(:dynamic_env, :aws_secret_key),
secret_access_key: Application.get_env(:dynamic_env, :aws_secret_access_key),
region: "us-east-1",
endpoint: "amazonaws.com"
}
end
end