Skip to content

Configurations - Decouple configuration files from services #107

Description

@limorl
  1. Decouple Configuration from Service Code:
    Consider moving your configuration files out of the service directories. This could help prevent the need to bump the service version for configuration changes.
    monorepo/
    ├── services/
    │ └── greeting/
    │ └── ...
    ├── configs/
    │ └── greeting/
    │ ├── aws.dev.us-east1.json
    │ ├── aws.staging.us-east1.json
    │ └── aws.prod.us-east1.json
    └── ...

  2. Create a separate CI/CD pipeline for configuration changes:
    This pipeline triggers on changes to the configs/ directory
    It deploys only the changed configuration files
    It doesn't trigger service deployments

  3. For tracking purposes, maintain a CHANGELOG.md file in the configs/ directory to log configuration changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions