AWS Management

Managing Environment Variables

Common steps

  1. Login to AWS
  2. Navigate to Systems Manager > Parameter Store for given region

Example for eu-central-1:

Parameter Store

Adding new parameter

  1. Create new parameter
  2. Add parameter name and value:
    • make sure it matches the valid service and stage
    • make sure it is editable path (terraform is reserved for setting envs from terraform)
    • use CAPITAL_CASE for the name (path is still lowercase)
    • example: /namespace/stage/service/editable/MY_ENV
  3. Select SecureString as type
  4. Press "Create parameter" button
  5. Add environment variable to the appropriate .github/workflows

Parameter Store

Updating parameter

  1. Edit parameter value (editable one) and save.
  2. Restart the service (or wait for the next deployment)

Removing parameter

  1. Remove environment variable from the appropriate .github/workflows
  2. Wait for the next deployment
  3. Once the service is restarted, remove parameter from SSM Parameter Store

On this page