func-api-appconfig-patch
Description
Manages AppConfig configuration for individual Lambda functions. Handles three routes on the Configuration page:
PATCH /appconfig/{function_name}— stages a new configuration version. Creates the AppConfig application, environment, and profile automatically if they do not exist. Does not deploy; changes take effect only afterPOST /appconfig/{function_name}/deploy.POST /appconfig/{function_name}/deploy— deploys the latest staged version using theAppConfig.AllAtOncestrategy. Returns409 Conflictif a deployment is already in progress.DELETE /appconfig/{function_name}— removes the AppConfig application entirely (all versions, profile, environment, and application), reverting the function to the default WARNING log level. Returns409 Conflictif a deployment is in progress.
Configuration is stored as a JSON object ({"logging": "WARNING"}) and can carry additional keys for future feature flags. All routes are authenticated via the Cognito JWT authorizer and restricted to super users.
Invocation
Invoked by API Gateway on PATCH, POST, and DELETE requests to /appconfig/{function_name} and /appconfig/{function_name}/deploy.
Sequence Diagrams
PATCH /appconfig/
POST /appconfig/{function_name}/deploy
DELETE /appconfig/
API Endpoints
| Method | Path | Description |
|---|---|---|
PATCH | /appconfig/{function_name} | Stage a new configuration version (does not deploy) |
POST | /appconfig/{function_name}/deploy | Deploy the latest staged version |
DELETE | /appconfig/{function_name} | Remove the AppConfig application; revert to default WARNING |
See the API Reference for full schema documentation.
Deployment
See the deployment workflow documentation for workflow steps, infrastructure dependencies, and failure scenarios.