secret_config v0.0.1 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)

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

Specs

delete(key :: binary()) :: ExAws.Operation.JSON.t()

Deletes parameter from the AWS Parameter Store, then it triggers a refresh of the GenServer state

Link to this function

fetch(key, default \\ [])

Gets parameter from GenServer (returns default value if present)

Link to this function

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

Triggers a refresh of the GenServer state by pulling the latest from the AWS Parameter Store