secret_config v0.7.0 SecretConfig
Handles CRUD operations to interact with AWS SSM Parameter Store. parameters are pushed to SSM as secure strings (encrypted) but then added as plain text into the GenServer's internal state
Link to this section Summary
Functions
Deletes parameter from the AWS Parameter Store, then it triggers a refresh of the GenServer state
Gets parameter from GenServer (returns default value if present)
Checks for parameter to be present
Adds parameter to the AWS Parameter Store, then it triggers a refresh of the GenServer state
Triggers a refresh of the GenServer state by pulling the latest from the AWS Parameter Store
Link to this section Functions
delete(key)
Specs
delete(key :: binary()) :: ExAws.Operation.JSON.t()
Deletes parameter from the AWS Parameter Store, then it triggers a refresh of the GenServer state
fetch(key, default \\ [])
Gets parameter from GenServer (returns default value if present)
key?(key, default \\ [])
Checks for parameter to be present
push(key, value)
Specs
push(key :: binary(), value :: binary()) :: ExAws.Operation.JSON.t()
Adds parameter to the AWS Parameter Store, then it triggers a refresh of the GenServer state
refresh()
Triggers a refresh of the GenServer state by pulling the latest from the AWS Parameter Store