Why use AppConfig?
AppConfig solves a focused problem: avoid baking configuration into environment variables or shipping new deployments just to change behavior. Typical use cases:- Feature flags (toggle new UI, new API behavior) for a subset of users.
- Gradual rollouts and quick rollbacks if issues occur.
- One central configuration source shared across applications and environments.
Core concepts
Below are the primary AppConfig components and what they represent:
Deployment strategies
AppConfig supports multiple rollout strategies so you can control risk when introducing changes:- Immediate — apply configuration to all targets at once.
- Linear — roll out in equal increments over a set interval (e.g., 10% every 5 minutes).
- Exponential — expand the fleet in exponentially larger portions (e.g., 1%, 2%, 4%, …).
- Canary — target a small subset first; expand only if health checks pass.

Validation and safety
- Use JSON Schema validators for structural and type checks.
- Use Lambda validators when you need arbitrary or cross-field validations.
- Monitor application metrics and logs during rollouts to detect regressions.
- AppConfig supports rollback policies so a bad configuration can be quickly reverted.
Be careful with sensitive configuration. Store secrets in AWS Secrets Manager or Systems Manager Parameter Store and reference them from AppConfig rather than embedding secrets directly in configuration content.
Best practices
- Store secrets and sensitive values in AWS Secrets Manager or Systems Manager Parameter Store and reference them from AppConfig when appropriate.
- Use validators (JSON Schema or Lambda validators) to catch invalid configurations before deployment.
- Choose a deployment strategy (canary, linear, exponential, immediate) that matches the risk and scope of the change.
- Monitor metrics and logs during rollout and be prepared to roll back quickly when issues are detected.
- For serverless or containerized workloads (AWS Lambda, Amazon ECS, EKS), integrate the AppConfig SDK or use provided extensions to fetch updates without restarting the service.
Example workflow
- Create an AppConfig Application (logical grouping).
- Add Environments (dev, staging, production).
- Create a Configuration Profile that points to your configuration source (Parameter Store, Secrets Manager, S3, or inline).
- Attach a Validator (JSON Schema or Lambda) to the profile.
- Deploy a configuration using a chosen deployment strategy and monitor the rollout.
- Roll back immediately if health checks or metrics indicate a problem.
Links and references
- AWS AppConfig documentation: https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html
- AWS Systems Manager: https://docs.aws.amazon.com/systems-manager/
- JSON Schema: https://json-schema.org/
- AWS Secrets Manager: https://aws.amazon.com/secrets-manager/