code for article pfeilbr/aws-appconfig-playground
learn AWS AppConfig
create, manage, and quickly deploy application configurations. AWS AppConfig supports controlled deployments to applications of any size and includes built-in validation checks and monitoring. You can use AWS AppConfig with applications hosted on EC2 instances, AWS Lambda, containers, mobile applications, or IoT devices.
Concepts
Domain
- Application (myapp)
- Environment (dev, test, demo, prod)
- Configuration Profile - versioned configuration data. text, json, yaml, S3 object, SSM Document, SSM Parameter, CodePipeline
- Deployment - types:
AllAtOnce
,Linear50PercentEvery30Seconds
,Canary10Percent20Minutes
Functional
- deploy configuration changes from a central location
- rules to validate your configuration. configurations that aren’t valid can’t be deployed.
- validation types: JSON schema, Lambda. see About validators
Example(s)
get configuration via cli
aws appconfig get-configuration \
--application 'app01' \
--environment 'dev' \
--configuration 'config-profile-01' \
--client-id 'test' \
appconfig.json
# view results in specified output file `appconfig.json`
cat appconfig.json
output
AWS Console Screenshots
Configuration profile source types
Example JSON configuration profile
Deployment Strategy Types
Start Deployment
Deployment
Resources
- AWS AppConfig Documentation
- Deploying application configuration to serverless: introducing the AWS AppConfig Lambda extension - blog post on how to use AppConfig Lambda extension
- AWS AppConfig integration with Lambda extensions -
- sessions-with-aws-sam/appconfig-lambda-extensions/README.md - good complete reference implementation on how to effectively use with lambda
- sthulb/appconfig-demo
Twitter • Reddit