AppConfig Deployment Operator
What this skill does
Executes AWS AppConfig deployment operations correctly and safely.
Runs deterministic pre-checks before any state-changing CLI, emits
the exact start-deployment / stop-deployment / rollback sequence
behind a CONFIRM gate, and verifies state transitions after apply.
Every deployment surfaces growth factor, bake time, and rollback
alarm wiring.
Quick navigation
| Section |
What it covers |
When to read it |
| § Quick reference |
Verdict thresholds + pre-check priority + strategy semantics |
Before any operation |
| § Mindset |
Pre-checks, percentage-of-target semantics, alarm rollback |
Understanding the safety model |
| § Pre-flight |
Application / environment / profile metadata gate |
Before executing any CLI |
| § Process |
Per-operation planning: create resources, define strategy, start, rollback, CodeDeploy |
When choosing which operation |
| § Common patterns |
Feature flag, freeform, Lambda extension, CodeDeploy boilerplate |
Boilerplate lookup |
| § Output format |
Structured output template with VERDICT, COMMANDS, POST_VERIFY |
Formatting the response |
| § Anti-Patterns |
NEVER list — common mistakes |
Review before risky operations |
| references/deployment-strategies-and-rollback.md |
Strategy, rollback, CodeDeploy detail |
On demand |
| references/lambda-extension-and-runtime-integration.md |
Extension, agent, flag schema detail |
On demand |
| references/advanced-patterns.md |
Step-0 expert knowledge + heuristics + recent features |
On demand |
| references/diagnostic-commands.md |
Pre-flight + diagnostic runbooks |
On demand |
| references/worked-examples.md |
Secondary worked example + setup boilerplate |
On demand |
Quick reference — verdict thresholds
| Verdict |
Trigger condition |
Action |
BLOCKED |
One or more pre-checks failed (missing application / environment / configuration profile, schema validation failure, alarm in ALARM state, IAM permission missing, configuration data oversized) |
List failures, do NOT execute |
READY |
All pre-checks passed; awaiting CONFIRM gate |
Emit exact CLI sequence, wait for operator yes |
COMPLETED |
Deployment applied and post-verification passed (State: COMPLETED, percentage reached 100%, alarms healthy, hosts received the new configuration) |
Emit get-deployment summary |
Priority order for pre-checks (all must pass for READY):
- Application / environment / configuration profile existence — ARNs resolve, environment is
READY_FOR_DEPLOYMENT, profile version is not in a terminal-failed state.
- Configuration data validity — size <= 64 KB (hosted configuration), schema (Validators) passes for JSON / feature-flag profiles.
- Deployment strategy sanity —
GrowthFactor * DeploymentDurationInMinutes * ReplicaMultiplier >= BakeTimeInMinutes. All-at-once (GrowthFactor=100) skips bake steps.
- CloudWatch alarm health — every alarm in
MonitorList is OK; any ALARM blocks the deployment.
- IAM permissions — caller holds
appconfig:StartDeployment, appconfig:GetDeployment, appconfig:StopDeployment, cloudwatch:DescribeAlarms.
- KMS key (if encryption configured) — caller has
kms:Decrypt and kms:GenerateDataKey on the configured key.
- No in-progress deployment —
list-deployments --environment-id <id> returns no DEPLOYING deployment on the target environment.
Deployment strategy semantics (2026):
| Strategy |
GrowthFactor |
DeploymentDuration |
BakeTime |
When to use |
AppConfig.AllAtOnce (built-in) |
100% |
0 min |
0 min |
Dev / sandbox; no bake |
AppConfig.Linear50PercentEvery30Minutes (built-in) |
50% |
30 min |
30 min |
Conservative 2-step canary |
| Linear custom |
20% |
30 min |
30 min |
5-step canary (20/40/60/80/100) |
| Exponential custom |
20% |
30 min |
30 min |
Aggressive; faster at low risk |
| CodeDeploy-appended |
25% |
60 min |
60 min |
When using AppConfig.50Percent / Canary entries in CodeDeploy |
ReplicaMultiplier (default 1) multiplies the per-step duration; use
when distributing across replica sets.
Mindset
Three AppConfig realities drive every deployment operation:
Percentage-of-target is per-evaluation, not per-host. AppConfig
rolls out to a percentage of targets at each step boundary
(GrowthFactor / ReplicaMultiplier). With Lambda extension or
agent, the percentage is enforced by the service across GetConfiguration
callers — a host that calls between steps sees the version
consistent with the current step. Do not assume one-shot
fan-out; the runtime must re-call GetConfiguration.
Rollback is alarm-driven, not metric-driven. AppConfig rolls back
only when a CloudWatch alarm in MonitorList transitions to ALARM
during the deployment window. A metric rising but not breaching
an alarm threshold does NOT trigger rollback. Always pair the
deployment with alarms calibrated to the new configuration's
expected error / latency band.
TERMINATED is the silent failure mode. A deployment can
TERMINATE if the configuration data fails validation, the
referenced profile is deleted mid-deployment, or the caller
lacks appconfig:GetConfiguration on the resource policy. A
TERMINATED deployment cannot be rolled back — it leaves
targets in their last-known-good state but no longer receives
updates. Always re-issue a new start-deployment after fixing
the cause.
Pre-flight: application / environment metadata gate
Command listing: diagnostic-commands.md. The seven live-account pre-flight CLIs (list-applications through describe-alarms) plus the metadata-gate table mapping Environment.State, profile Type, MonitorList alarms, DEPLOYING state, and 64 KB size to their blocking effects.
Run before classification; malformed input emits VERDICT: ERROR.
Process — operation planning (apply in order)
Step 0: Expert knowledge — non-obvious AppConfig behaviors
Expert-knowledge deep dive: advanced-patterns.md. Eleven non-obvious behaviors — GetConfiguration as runtime source of truth, bake-after-step timing, all-at-once fan-out tail, rollback target semantics, Lambda extension env vars, CodeDeploy traffic routers, restrictive flag schema, 64 KB limit, KmsKeyIdentifier, TERMINATED semantics, StopDeployment past the rollback point.
Loaded on demand — Step 1 below encodes the actionable pre-check rules.
Step 1: Pre-check gate — BLOCKED if any check fails
Run ALL pre-checks. If ANY fails, verdict is BLOCKED with failures
in PRE_CHECKS. Do NOT execute.
For ALL operations:
- Application ID and Environment ID resolve to existing resources.
- Environment
State: READY_FOR_DEPLOYMENT.
- Caller holds
appconfig:StartDeployment / GetDeployment /
StopDeployment / GetConfiguration on the resource policy.
- KMS key (if configured) decryptable by the caller.
For start-deployment:
5. Configuration profile exists; latest hosted version passes
Validators (schema).
6. Hosted configuration size <= 64 KB (or S3-backed profile).
7. Deployment strategy: GrowthFactor * ReplicaMultiplier in
[1, 100]; DeploymentDurationInMinutes >= 0;
BakeTimeInMinutes >= 0.
8. Every MonitorList[].AlarmArn resolves and is in OK state.
9. No active DEPLOYING deployment on the target environment.
For define-strategy:
5. GrowthFactor 1-100; DeploymentDurationInMinutes 0-1440;
BakeTimeInMinutes 0-1440; ReplicaMultiplier 1-10 (defaults 1).
6. DeploymentStrategyName unique in account-region.
7. For all-at-once (GrowthFactor=100), warn that bake steps are
skipped.
For rollback (stop-deployment):
5. Deployment State: DEPLOYING (rollback applies) or
State: ROLLING_BACK (idempotent no-op).
6. A previous COMPLETED deployment exists as the rollback target
(otherwise emit BLOCKED — no known-good to revert to).
7. CloudWatch alarms updated to reflect the rollback target.
For create-profile:
5. Type is one of AWS.Freeform, AWS.AppConfig.FeatureFlags.
6. Feature-flag type has a Validators entry pointing at a JSON schema.
7. Freeform type accepts any valid JSON <= 64 KB.
For create-environment:
5. Application exists.
6. Environment name unique within the application.
Step 2: READY — emit operation plan
Emit VERDICT: READY with exact CLI sequence + CONFIRM gate:
- Exact AWS CLI command with all flags populated.
- Expected deployment duration:
ceil(100 / GrowthFactor) * (DeploymentDurationInMinutes + BakeTimeInMinutes) * ReplicaMultiplier minutes.
- Expected side-effects (alarm transitions, fan-out to targets).
- CONFIRM gate prompt.
Step 3: Execute behind CONFIRM gate
- MANDATORY CONFIRMATION GATE. Before any state-changing CLI
(
start-deployment, stop-deployment, create-deployment-strategy,
create-configuration-profile, delete-configuration-profile),
emit CONFIRM prompt. Do NOT execute until confirmed.
- Snapshot current state:
list-deployments --application-id <app> --environment-id <env> --output json > /tmp/<env>-backup-$(date +%s).json.
- Execute the CLI.
- For multi-step deployments, poll
get-deployment at each step
boundary; the State transitions through DEPLOYING → Baking
(if applicable) → COMPLETED or ROLLING_BACK.
Step 4: Post-verification — COMPLETED
ALL checks must pass for COMPLETED:
get-deployment returns State: COMPLETED and
PercentageComplete: 100.00.
- CloudWatch alarms in
MonitorList all OK at the end of bake.
- At least one target host (Lambda extension poll, agent poll, or
GetConfiguration direct) reports the new
ClientConfigurationVersion.
EventLog (returned by get-deployment) shows no rollback events.
- For Lambda extension integrations: a sample invocation confirms
the new configuration is loaded (check function logs for the
AppConfig extension's
Configuration loaded message).
- For CodeDeploy integrations:
codedeploy get-deployment shows
status: Succeeded.
If ANY verification fails, emit VERDICT: ERROR — do not claim COMPLETED.
Common deployment patterns (boilerplate)
Create application + environment + freeform profile (one-time setup)
Boilerplate: worked-examples.md. create-application, create-environment, create-configuration-profile (AWS.Freeform), create-hosted-configuration-version (<= 64 KB), with Id capture via list-* --query.
One-time setup pattern.
Create a linear deployment strategy with bake time (5-step canary)
Boilerplate: deployment-strategies-and-rollback.md. create-deployment-strategy for a 5-step linear canary (GrowthFactor 20, 30 min deploy + 30 min bake).
GrowthFactor=20 LINEAR yields 20/40/60/80/100; total ~5 x (30+30) = 300 minutes.
Start a deployment with rollback alarms
Boilerplate: deployment-strategies-and-rollback.md. start-deployment with strategy / profile / version / KMS flags populated.
MonitorList alarms are set via SDK or console (the CLI does not accept them) or watched via describe-alarms polling.
CodeDeploy-managed AppConfig deployment (canary)
Boilerplate: deployment-strategies-and-rollback.md. create-deployment-group with --deployment-config-name AppConfig.50Percent and BLUE_GREEN / WITH_TRAFFIC_CONTROL.
CodeDeploy orchestrates pre/post-traffic hooks; AppConfig provides the configuration store.
Lambda extension (runtime feature flags without redeploy)
Boilerplate: lambda-extension-and-runtime-integration.md. Add the AWS-AppConfig-Extension layer and AWS_APPCONFIG_EXTENSION_* env vars; the function reads http://localhost:2772.
Updates land within the 45-second polling interval without a function redeploy.
Diagnostic flows
Command runbooks: diagnostic-commands.md. Stuck DEPLOYING (EventLog step analysis), ROLLING_BACK / ROLLED_BACK (alarm trigger identification), and TERMINATED (terminal causes + fresh start-deployment).
Each runbook lists the exact get-deployment / describe-alarms probes and the decision at each branch.
Output format (per operation)
OPERATION: <create-application | create-environment | create-profile | define-strategy | start-deployment | stop-deployment | rollback | describe>
VERDICT: READY | BLOCKED | COMPLETED
TARGET: <application-id / environment-id / deployment-number, region>
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
STEPS:
1. <CLI command with flags populated>
2. <wait / poll command>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
STATE: <DEPLOYING | BAKING | COMPLETED | ROLLING_BACK | ROLLED_BACK | TERMINATED after apply>
PERCENTAGE_COMPLETE: <0.00 - 100.00>
NOTES: <strategy rationale, detection lag, alarm wiring caveats>
Worked example — start linear deployment (READY)
OPERATION: start-deployment
VERDICT: READY
TARGET: checkout-service / prod / deployment #14, us-east-1
PRE_CHECKS:
- [PASS] Application checkout-service (id: abc123) exists
- [PASS] Environment prod (id: env-456) State READY_FOR_DEPLOYMENT
- [PASS] Configuration profile checkout-config (id: prof-789) type AWS.Freeform
- [PASS] Hosted configuration version 7 size 3.2 KB < 64 KB; Validators pass
- [PASS] Deployment strategy linear-20-percent-30min-bake: GrowthFactor 20, DeploymentDurationInMinutes 30, BakeTimeInMinutes 30 — 5-step canary, ~300 min wall-clock
- [PASS] MonitorList alarm arn:aws:cloudwatch:us-east-1:111122223333:alarm:checkout-5xx currently OK
- [PASS] Caller holds appconfig:StartDeployment, appconfig:GetDeployment
- [PASS] list-deployments: no active DEPLOYING deployment on env-456
STEPS:
1. CONFIRM: About to start-deployment #14 on checkout-service / prod in account 111122223333 region us-east-1. Linear 20% canary (5 steps, 30 min deploy + 30 min bake each, ~300 min total). Rollback alarm: checkout-5xx. Proceed? (yes/no)
2. aws appconfig start-deployment --application-id abc123 --environment-id env-456 --deployment-strategy-id linear-20-percent-30min-bake --configuration-profile-id prof-789 --configuration-version 7 --description "Raise checkout timeout to 5000 ms (cutoff 2026-08)" --kms-key-identifier arn:aws:kms:us-east-1:111122223333:key/abc
3. aws appconfig get-deployment --application-id abc123 --environment-id env-456 --deployment-number 14 (poll at each step boundary)
POST_VERIFY:
- (pending execution) expect State COMPLETED, PercentageComplete 100.00
- (pending execution) MonitorList alarm checkout-5xx remains OK through final bake
- (pending execution) Lambda extension poll on checkout-handler reports ClientConfigurationVersion 7 within 45s of step completion
STATE: pending — will be DEPLOYING for ~300 min
PERCENTAGE_COMPLETE: 0.00
NOTES:
- Strategy: 5-step linear canary (20/40/60/80/100). Each step deploys for 30 min, then bakes for 30 min before the next step. Total ~300 min.
- Detection lag: Lambda extension polls every 45s — targets converge within 45s of each step boundary.
- Rollback: triggered if checkout-5xx transitions to ALARM during any bake window. Rollback reverts to the prior COMPLETED deployment's configuration version.
Worked example — rollback blocked (BLOCKED)
Secondary example: worked-examples.md. Rollback blocked (BLOCKED) — StopDeployment applies only to DEPLOYING, and no prior COMPLETED means no known-good version to revert to.
Includes the list-hosted-configuration-versions remediation for a manual revert.
STRICT output contract
Required output structure
Every response MUST begin with this block — no preamble, no
conversational opening:
OPERATION: <create-application | create-environment | create-profile | define-strategy | start-deployment | stop-deployment | rollback | describe>
VERDICT: READY | BLOCKED | COMPLETED
TARGET: <application-id / environment-id / deployment-number, region>
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
STEPS:
1. CONFIRM: About to <operation> on <application/environment/deployment> in account <account> region <region>. This will <consequence>. Proceed? (yes/no)
2. <exact CLI command with every flag populated — no placeholders>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
STATE: <DEPLOYING | BAKING | COMPLETED | ROLLING_BACK | ROLLED_BACK | TERMINATED | pending>
PERCENTAGE_COMPLETE: <0.00 - 100.00 | pending>
NOTES: <strategy rationale — must state GrowthFactor / DeploymentDuration / BakeTime; detection lag; alarm wiring caveats>
FORBIDDEN output patterns
- NEVER start with conversational preamble ("Let me analyze…") — the VERDICT block is the FIRST line, always. Use uppercase verdict values only (
READY, BLOCKED, COMPLETED).
- NEVER omit PRE_CHECKS — every pre-check must appear with
[PASS] or [FAIL] and a specific reason for each failure.
- NEVER emit
BakeTimeInMinutes: 0 for a production canary without flagging the silent-failure risk in NOTES.
- NEVER list a CLI command with placeholder flags in a READY plan — every flag must be populated with actual values from the input data.
- NEVER claim COMPLETED without every POST_VERIFY line showing
[PASS], and never omit the CONFIRM gate as the first STEPS entry for state-changing operations.
Anti-Patterns — NEVER do these things
- NEVER use
AppConfig.AllAtOnce for a production configuration change without a CloudWatch alarm in MonitorList. All-at-once deploys to 100% of targets immediately; without an alarm, a bad configuration silently propagates.
- NEVER skip bake time (
BakeTimeInMinutes: 0) on a multi-step canary. The bake window is the only window during which rollback alarms can fire between steps. Without bake, a failing configuration reaches 100% before alarms catch it.
- NEVER assume a
TERMINATED deployment can be resumed. Terminated is terminal — issue a new start-deployment after fixing the root cause.
- NEVER deploy a feature-flag payload as
AWS.Freeform or vice versa. The Validators schema is type-specific; a mismatch produces a confusing validation error at start-deployment time.
- NEVER use the Lambda extension without the
AWS_APPCONFIG_EXTENSION_* environment variables. The extension preloads only when these variables are set; without them, localhost:2772 returns 404.
Pre-flight safety checks
- MANDATORY CONFIRMATION GATE before any state-changing CLI.
- Snapshot before modification:
list-deployments --application-id <app> --environment-id <env> --output json > /tmp/<env>-backup-$(date +%s).json.
- Verify rollback alarms are in
OK state before start-deployment.
- Prefer additive configuration changes (add a flag, add a key) over destructive (delete a flag, rename a key).
- Validate configuration payload against the profile schema before start-deployment.
Expert heuristic: "Bake time is the rollback window"
Deep dive: advanced-patterns.md. Bake time is the ONLY rollback window — lifecycle diagram, DeploymentDuration vs Bake vs FinalBake table, rollback-target selection, per-strategy root causes, extension/agent polling.
Seed an environment with a known-good COMPLETED deployment before risky rollouts.
Recent AWS features (2024-2026)
Deep dive: advanced-patterns.md. Lambda extension layer, AppConfig agent (EC2/ECS/EKS), CodeDeploy configs, feature-flag schema, KMS, typed profiles, FinalBakeTimeInMinutes, S3-backed profiles, EventBridge state events, ECS/EKS sidecar (2024-2026).
Loaded on demand when the task calls for the newest capabilities.
References (load on demand)
- Deployment strategies and rollback — strategy parameter semantics, rollback model, CloudWatch alarm wiring, CodeDeploy integration, diagnostic runbooks
- Lambda extension and runtime integration — extension architecture, AppConfig agent, direct GetConfiguration, feature flag schema, runtime pitfalls
- Advanced patterns — Step-0 non-obvious behaviors, bake-time rollback-window heuristic, recent AWS features 2024-2026
- Diagnostic commands — live-account pre-flight CLI listing, metadata gate table, stuck DEPLOYING / ROLLING_BACK / TERMINATED runbooks
- Worked examples — rollback-blocked (BLOCKED) worked example, create application / environment / profile boilerplate
Domain
AWS CloudOps / AppConfig Deployment Lifecycle & Configuration
Operations.
AWS documentation
1---2name: appconfig-deployment-operator3description: Operates AWS AppConfig deployment lifecycles safely — creates applications, environments, and configuration profiles (freeform and feature-flag); defines deployment strategies (linear or all-at-once, growth factor, deployment duration, bake time); starts, monitors, and completes deployments; rolls back on CloudWatch alarm; and integrates AppConfig Lambda extensions for runtime feature flags and dynamic configuration. Runs deterministic pre-checks (application / environment existence, profile schema validity, strategy sanity, alarm health, IAM), emits the exact start-deployment / stop-deployment / rollback CLI behind a CONFIRM gate, and verifies state transitions. Emits READY | BLOCKED | COMPLETED. Use when launching a staged AppConfig deployment, wiring rollback alarms, switching strategies, adopting AppConfig Lambda extensions for live feature flags, integrating AppConfig with CodeDeploy, or diagnosing a deployment stuck in DEPLOYING / ROLLING_BACK / TERMINATED.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws appconfig create-application, create-environment, create-configuration-profile, create-deployment-strategy, start-deployment, get-deployment, stop-deployment, list-deployments, get-configuration, aws codedeploy stop-deployment, and aws cloudwatch describe-alarms (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/appconfig-deployment-operator8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '3'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Management15 task_type: operate16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY | BLOCKED | COMPLETED19 when_to_use: Launching or operating an AppConfig deployment (start, monitor, stop, rollback), defining a deployment strategy (linear, all-at-once, growth factor, deployment duration, bake time), wiring CloudWatch alarms for automatic rollback, integrating AppConfig Lambda extensions for runtime feature flags / dynamic configuration, integrating AppConfig with CodeDeploy for orchestrated deployments, creating configuration profiles (freeform JSON, feature-flag schema), creating applications and environments, diagnosing a deployment stuck in DEPLOYING, ROLLING_BACK, or TERMINATED, or choosing between AppConfig.AllAtOnce / Linear / AppConfig deployments via CodeDeploy.20 when_not_to_use: General secrets management (use Parameter Store or Secrets Manager), SSM document execution (use ssm-documents-operator), CloudFormation stack updates (use cloudformation-stack operators), or service mesh traffic shifting (use appmesh-deployer).21 activation_triggers: AppConfig deployment, start-deployment, stop-deployment, rollback AppConfig, deployment strategy, growth factor, bake time, linear deployment, all-at-once, feature flag, AppConfig Lambda extension, AppConfig agent, configuration profile, AppConfig CodeDeploy, deployment stuck DEPLOYING, ROLLING_BACK, AppConfig TERMINATED, dynamic configuration22 invocation_schema: 'Input: either (a) an AppConfig deployment intent (start, stop, rollback, define-strategy, create-profile, create-environment, create-application) with target application / environment / profile / strategy identifiers, OR (b) a deployment-id + operation for live-account execution. Output: a deterministic OPERATION / VERDICT / PRE_CHECKS / STEPS / POST_VERIFY block per operation, where VERDICT is one of READY, BLOCKED, COMPLETED.'23 version: 0.1.024 author: Jacky Chan — AWS Community Builder25 keywords: AppConfig, feature flags, dynamic configuration, deployment strategy, linear deployment, all-at-once, growth factor, bake time, rollback, CloudWatch alarm, Lambda extension, CodeDeploy, configuration profile, environment, staged rollout, canary, AppConfig agent, StartDeployment, configuration data26 tags: appconfig, configuration, feature-flags, operate, staged-rollout, rollback, codedeploy27---2829# AppConfig Deployment Operator3031## What this skill does3233Executes AWS AppConfig deployment operations correctly and safely.34Runs deterministic pre-checks before any state-changing CLI, emits35the exact `start-deployment` / `stop-deployment` / rollback sequence36behind a CONFIRM gate, and verifies state transitions after apply.37Every deployment surfaces growth factor, bake time, and rollback38alarm wiring.3940## Quick navigation4142| Section | What it covers | When to read it |43|---|---|---|44| **§ Quick reference** | Verdict thresholds + pre-check priority + strategy semantics | Before any operation |45| **§ Mindset** | Pre-checks, percentage-of-target semantics, alarm rollback | Understanding the safety model |46| **§ Pre-flight** | Application / environment / profile metadata gate | Before executing any CLI |47| **§ Process** | Per-operation planning: create resources, define strategy, start, rollback, CodeDeploy | When choosing which operation |48| **§ Common patterns** | Feature flag, freeform, Lambda extension, CodeDeploy boilerplate | Boilerplate lookup |49| **§ Output format** | Structured output template with VERDICT, COMMANDS, POST_VERIFY | Formatting the response |50| **§ Anti-Patterns** | NEVER list — common mistakes | Review before risky operations |51| references/deployment-strategies-and-rollback.md | Strategy, rollback, CodeDeploy detail | On demand |52| references/lambda-extension-and-runtime-integration.md | Extension, agent, flag schema detail | On demand |53| references/advanced-patterns.md | Step-0 expert knowledge + heuristics + recent features | On demand |54| references/diagnostic-commands.md | Pre-flight + diagnostic runbooks | On demand |55| references/worked-examples.md | Secondary worked example + setup boilerplate | On demand |5657## Quick reference — verdict thresholds5859| Verdict | Trigger condition | Action |60|---|---|---|61| `BLOCKED` | One or more pre-checks failed (missing application / environment / configuration profile, schema validation failure, alarm in ALARM state, IAM permission missing, configuration data oversized) | List failures, do NOT execute |62| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence, wait for operator yes |63| `COMPLETED` | Deployment applied and post-verification passed (`State: COMPLETED`, percentage reached 100%, alarms healthy, hosts received the new configuration) | Emit `get-deployment` summary |6465**Priority order for pre-checks (all must pass for READY):**66671. **Application / environment / configuration profile existence** — ARNs resolve, environment is `READY_FOR_DEPLOYMENT`, profile version is not in a terminal-failed state.682. **Configuration data validity** — size <= 64 KB (hosted configuration), schema (Validators) passes for JSON / feature-flag profiles.693. **Deployment strategy sanity** — `GrowthFactor * DeploymentDurationInMinutes * ReplicaMultiplier >= BakeTimeInMinutes`. All-at-once (`GrowthFactor=100`) skips bake steps.704. **CloudWatch alarm health** — every alarm in `MonitorList` is `OK`; any `ALARM` blocks the deployment.715. **IAM permissions** — caller holds `appconfig:StartDeployment`, `appconfig:GetDeployment`, `appconfig:StopDeployment`, `cloudwatch:DescribeAlarms`.726. **KMS key (if encryption configured)** — caller has `kms:Decrypt` and `kms:GenerateDataKey` on the configured key.737. **No in-progress deployment** — `list-deployments --environment-id <id>` returns no `DEPLOYING` deployment on the target environment.7475**Deployment strategy semantics (2026):**7677| Strategy | GrowthFactor | DeploymentDuration | BakeTime | When to use |78|---|---|---|---|---|79| `AppConfig.AllAtOnce` (built-in) | 100% | 0 min | 0 min | Dev / sandbox; no bake |80| `AppConfig.Linear50PercentEvery30Minutes` (built-in) | 50% | 30 min | 30 min | Conservative 2-step canary |81| Linear custom | 20% | 30 min | 30 min | 5-step canary (20/40/60/80/100) |82| Exponential custom | 20% | 30 min | 30 min | Aggressive; faster at low risk |83| CodeDeploy-appended | 25% | 60 min | 60 min | When using AppConfig.50Percent / Canary entries in CodeDeploy |8485`ReplicaMultiplier` (default 1) multiplies the per-step duration; use86when distributing across replica sets.8788## Mindset8990Three AppConfig realities drive every deployment operation:9192- **Percentage-of-target is per-evaluation, not per-host.** AppConfig93 rolls out to a percentage of targets at each step boundary94 (`GrowthFactor` / `ReplicaMultiplier`). With Lambda extension or95 agent, the percentage is enforced by the service across `GetConfiguration`96 callers — a host that calls between steps sees the version97 consistent with the current step. Do not assume one-shot98 fan-out; the runtime must re-call `GetConfiguration`.99100- **Rollback is alarm-driven, not metric-driven.** AppConfig rolls back101 only when a CloudWatch alarm in `MonitorList` transitions to `ALARM`102 during the deployment window. A metric rising but not breaching103 an alarm threshold does NOT trigger rollback. Always pair the104 deployment with alarms calibrated to the new configuration's105 expected error / latency band.106107- **`TERMINATED` is the silent failure mode.** A deployment can108 `TERMINATE` if the configuration data fails validation, the109 referenced profile is deleted mid-deployment, or the caller110 lacks `appconfig:GetConfiguration` on the resource policy. A111 `TERMINATED` deployment cannot be rolled back — it leaves112 targets in their last-known-good state but no longer receives113 updates. Always re-issue a new `start-deployment` after fixing114 the cause.115116## Pre-flight: application / environment metadata gate117118Command listing: [diagnostic-commands.md](references/diagnostic-commands.md). The seven live-account pre-flight CLIs (list-applications through describe-alarms) plus the metadata-gate table mapping Environment.State, profile Type, MonitorList alarms, DEPLOYING state, and 64 KB size to their blocking effects.119Run before classification; malformed input emits `VERDICT: ERROR`.120121## Process — operation planning (apply in order)122123### Step 0: Expert knowledge — non-obvious AppConfig behaviors124125Expert-knowledge deep dive: [advanced-patterns.md](references/advanced-patterns.md). Eleven non-obvious behaviors — GetConfiguration as runtime source of truth, bake-after-step timing, all-at-once fan-out tail, rollback target semantics, Lambda extension env vars, CodeDeploy traffic routers, restrictive flag schema, 64 KB limit, KmsKeyIdentifier, TERMINATED semantics, StopDeployment past the rollback point.126Loaded on demand — Step 1 below encodes the actionable pre-check rules.127128### Step 1: Pre-check gate — BLOCKED if any check fails129130Run ALL pre-checks. If ANY fails, verdict is BLOCKED with failures131in PRE_CHECKS. Do NOT execute.132133**For ALL operations:**1341. Application ID and Environment ID resolve to existing resources.1352. Environment `State: READY_FOR_DEPLOYMENT`.1363. Caller holds `appconfig:StartDeployment` / `GetDeployment` /137 `StopDeployment` / `GetConfiguration` on the resource policy.1384. KMS key (if configured) decryptable by the caller.139140**For start-deployment:**1415. Configuration profile exists; latest hosted version passes142 Validators (schema).1436. Hosted configuration size <= 64 KB (or S3-backed profile).1447. Deployment strategy: `GrowthFactor * ReplicaMultiplier` in145 `[1, 100]`; `DeploymentDurationInMinutes >= 0`;146 `BakeTimeInMinutes >= 0`.1478. Every `MonitorList[].AlarmArn` resolves and is in `OK` state.1489. No active `DEPLOYING` deployment on the target environment.149150**For define-strategy:**1515. `GrowthFactor` 1-100; `DeploymentDurationInMinutes` 0-1440;152 `BakeTimeInMinutes` 0-1440; `ReplicaMultiplier` 1-10 (defaults 1).1536. `DeploymentStrategyName` unique in account-region.1547. For all-at-once (`GrowthFactor=100`), warn that bake steps are155 skipped.156157**For rollback (stop-deployment):**1585. Deployment `State: DEPLOYING` (rollback applies) or159 `State: ROLLING_BACK` (idempotent no-op).1606. A previous `COMPLETED` deployment exists as the rollback target161 (otherwise emit BLOCKED — no known-good to revert to).1627. CloudWatch alarms updated to reflect the rollback target.163164**For create-profile:**1655. `Type` is one of `AWS.Freeform`, `AWS.AppConfig.FeatureFlags`.1666. Feature-flag type has a Validators entry pointing at a JSON schema.1677. Freeform type accepts any valid JSON <= 64 KB.168169**For create-environment:**1705. Application exists.1716. Environment name unique within the application.172173### Step 2: READY — emit operation plan174175Emit `VERDICT: READY` with exact CLI sequence + CONFIRM gate:176- Exact AWS CLI command with all flags populated.177- Expected deployment duration: `ceil(100 / GrowthFactor) *178 (DeploymentDurationInMinutes + BakeTimeInMinutes) *179 ReplicaMultiplier` minutes.180- Expected side-effects (alarm transitions, fan-out to targets).181- CONFIRM gate prompt.182183### Step 3: Execute behind CONFIRM gate184185- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI186 (`start-deployment`, `stop-deployment`, `create-deployment-strategy`,187 `create-configuration-profile`, `delete-configuration-profile`),188 emit CONFIRM prompt. Do NOT execute until confirmed.189- Snapshot current state: `list-deployments --application-id <app>190 --environment-id <env> --output json > /tmp/<env>-backup-$(date +%s).json`.191- Execute the CLI.192- For multi-step deployments, poll `get-deployment` at each step193 boundary; the `State` transitions through `DEPLOYING` → `Baking`194 (if applicable) → `COMPLETED` or `ROLLING_BACK`.195196### Step 4: Post-verification — COMPLETED197198ALL checks must pass for `COMPLETED`:1991. `get-deployment` returns `State: COMPLETED` and200 `PercentageComplete: 100.00`.2012. CloudWatch alarms in `MonitorList` all `OK` at the end of bake.2023. At least one target host (Lambda extension poll, agent poll, or203 `GetConfiguration` direct) reports the new204 `ClientConfigurationVersion`.2054. `EventLog` (returned by `get-deployment`) shows no rollback events.2065. For Lambda extension integrations: a sample invocation confirms207 the new configuration is loaded (check function logs for the208 AppConfig extension's `Configuration loaded` message).2096. For CodeDeploy integrations: `codedeploy get-deployment` shows210 `status: Succeeded`.211212If ANY verification fails, emit `VERDICT: ERROR` — do not claim COMPLETED.213214## Common deployment patterns (boilerplate)215216### Create application + environment + freeform profile (one-time setup)217218Boilerplate: [worked-examples.md](references/worked-examples.md). create-application, create-environment, create-configuration-profile (AWS.Freeform), create-hosted-configuration-version (<= 64 KB), with Id capture via list-* --query.219One-time setup pattern.220221### Create a linear deployment strategy with bake time (5-step canary)222223Boilerplate: [deployment-strategies-and-rollback.md](references/deployment-strategies-and-rollback.md). create-deployment-strategy for a 5-step linear canary (GrowthFactor 20, 30 min deploy + 30 min bake).224GrowthFactor=20 LINEAR yields 20/40/60/80/100; total ~5 x (30+30) = 300 minutes.225226### Start a deployment with rollback alarms227228Boilerplate: [deployment-strategies-and-rollback.md](references/deployment-strategies-and-rollback.md). start-deployment with strategy / profile / version / KMS flags populated.229MonitorList alarms are set via SDK or console (the CLI does not accept them) or watched via describe-alarms polling.230231### CodeDeploy-managed AppConfig deployment (canary)232233Boilerplate: [deployment-strategies-and-rollback.md](references/deployment-strategies-and-rollback.md). create-deployment-group with --deployment-config-name AppConfig.50Percent and BLUE_GREEN / WITH_TRAFFIC_CONTROL.234CodeDeploy orchestrates pre/post-traffic hooks; AppConfig provides the configuration store.235236### Lambda extension (runtime feature flags without redeploy)237238Boilerplate: [lambda-extension-and-runtime-integration.md](references/lambda-extension-and-runtime-integration.md). Add the AWS-AppConfig-Extension layer and AWS_APPCONFIG_EXTENSION_* env vars; the function reads http://localhost:2772.239Updates land within the 45-second polling interval without a function redeploy.240241## Diagnostic flows242243Command runbooks: [diagnostic-commands.md](references/diagnostic-commands.md). Stuck DEPLOYING (EventLog step analysis), ROLLING_BACK / ROLLED_BACK (alarm trigger identification), and TERMINATED (terminal causes + fresh start-deployment).244Each runbook lists the exact get-deployment / describe-alarms probes and the decision at each branch.245246## Output format (per operation)247248```text249OPERATION: <create-application | create-environment | create-profile | define-strategy | start-deployment | stop-deployment | rollback | describe>250VERDICT: READY | BLOCKED | COMPLETED251TARGET: <application-id / environment-id / deployment-number, region>252PRE_CHECKS:253 - [PASS] <check description>254 - [FAIL] <check description> — <reason>255STEPS:256 1. <CLI command with flags populated>257 2. <wait / poll command>258POST_VERIFY:259 - [PASS] <verification description>260 - [FAIL] <verification description> — <reason>261STATE: <DEPLOYING | BAKING | COMPLETED | ROLLING_BACK | ROLLED_BACK | TERMINATED after apply>262PERCENTAGE_COMPLETE: <0.00 - 100.00>263NOTES: <strategy rationale, detection lag, alarm wiring caveats>264```265266### Worked example — start linear deployment (READY)267268```text269OPERATION: start-deployment270VERDICT: READY271TARGET: checkout-service / prod / deployment #14, us-east-1272PRE_CHECKS:273 - [PASS] Application checkout-service (id: abc123) exists274 - [PASS] Environment prod (id: env-456) State READY_FOR_DEPLOYMENT275 - [PASS] Configuration profile checkout-config (id: prof-789) type AWS.Freeform276 - [PASS] Hosted configuration version 7 size 3.2 KB < 64 KB; Validators pass277 - [PASS] Deployment strategy linear-20-percent-30min-bake: GrowthFactor 20, DeploymentDurationInMinutes 30, BakeTimeInMinutes 30 — 5-step canary, ~300 min wall-clock278 - [PASS] MonitorList alarm arn:aws:cloudwatch:us-east-1:111122223333:alarm:checkout-5xx currently OK279 - [PASS] Caller holds appconfig:StartDeployment, appconfig:GetDeployment280 - [PASS] list-deployments: no active DEPLOYING deployment on env-456281STEPS:282 1. CONFIRM: About to start-deployment #14 on checkout-service / prod in account 111122223333 region us-east-1. Linear 20% canary (5 steps, 30 min deploy + 30 min bake each, ~300 min total). Rollback alarm: checkout-5xx. Proceed? (yes/no)283 2. aws appconfig start-deployment --application-id abc123 --environment-id env-456 --deployment-strategy-id linear-20-percent-30min-bake --configuration-profile-id prof-789 --configuration-version 7 --description "Raise checkout timeout to 5000 ms (cutoff 2026-08)" --kms-key-identifier arn:aws:kms:us-east-1:111122223333:key/abc284 3. aws appconfig get-deployment --application-id abc123 --environment-id env-456 --deployment-number 14 (poll at each step boundary)285POST_VERIFY:286 - (pending execution) expect State COMPLETED, PercentageComplete 100.00287 - (pending execution) MonitorList alarm checkout-5xx remains OK through final bake288 - (pending execution) Lambda extension poll on checkout-handler reports ClientConfigurationVersion 7 within 45s of step completion289STATE: pending — will be DEPLOYING for ~300 min290PERCENTAGE_COMPLETE: 0.00291NOTES:292 - Strategy: 5-step linear canary (20/40/60/80/100). Each step deploys for 30 min, then bakes for 30 min before the next step. Total ~300 min.293 - Detection lag: Lambda extension polls every 45s — targets converge within 45s of each step boundary.294 - Rollback: triggered if checkout-5xx transitions to ALARM during any bake window. Rollback reverts to the prior COMPLETED deployment's configuration version.295```296297### Worked example — rollback blocked (BLOCKED)298299Secondary example: [worked-examples.md](references/worked-examples.md). Rollback blocked (BLOCKED) — StopDeployment applies only to DEPLOYING, and no prior COMPLETED means no known-good version to revert to.300Includes the list-hosted-configuration-versions remediation for a manual revert.301302## STRICT output contract303304### Required output structure305306Every response MUST begin with this block — no preamble, no307conversational opening:308309```text310OPERATION: <create-application | create-environment | create-profile | define-strategy | start-deployment | stop-deployment | rollback | describe>311VERDICT: READY | BLOCKED | COMPLETED312TARGET: <application-id / environment-id / deployment-number, region>313PRE_CHECKS:314 - [PASS] <check description>315 - [FAIL] <check description> — <reason>316STEPS:317 1. CONFIRM: About to <operation> on <application/environment/deployment> in account <account> region <region>. This will <consequence>. Proceed? (yes/no)318 2. <exact CLI command with every flag populated — no placeholders>319POST_VERIFY:320 - [PASS] <verification description>321 - [FAIL] <verification description> — <reason>322STATE: <DEPLOYING | BAKING | COMPLETED | ROLLING_BACK | ROLLED_BACK | TERMINATED | pending>323PERCENTAGE_COMPLETE: <0.00 - 100.00 | pending>324NOTES: <strategy rationale — must state GrowthFactor / DeploymentDuration / BakeTime; detection lag; alarm wiring caveats>325```326327### FORBIDDEN output patterns328329- NEVER start with conversational preamble ("Let me analyze…") — the VERDICT block is the FIRST line, always. Use uppercase verdict values only (`READY`, `BLOCKED`, `COMPLETED`).330- NEVER omit PRE_CHECKS — every pre-check must appear with `[PASS]` or `[FAIL]` and a specific reason for each failure.331- NEVER emit `BakeTimeInMinutes: 0` for a production canary without flagging the silent-failure risk in NOTES.332- NEVER list a CLI command with placeholder flags in a READY plan — every flag must be populated with actual values from the input data.333- NEVER claim COMPLETED without every POST_VERIFY line showing `[PASS]`, and never omit the CONFIRM gate as the first STEPS entry for state-changing operations.334335## Anti-Patterns — NEVER do these things336337- NEVER use `AppConfig.AllAtOnce` for a production configuration change without a CloudWatch alarm in `MonitorList`. All-at-once deploys to 100% of targets immediately; without an alarm, a bad configuration silently propagates.338- NEVER skip bake time (`BakeTimeInMinutes: 0`) on a multi-step canary. The bake window is the only window during which rollback alarms can fire between steps. Without bake, a failing configuration reaches 100% before alarms catch it.339- NEVER assume a `TERMINATED` deployment can be resumed. Terminated is terminal — issue a new `start-deployment` after fixing the root cause.340- NEVER deploy a feature-flag payload as `AWS.Freeform` or vice versa. The Validators schema is type-specific; a mismatch produces a confusing validation error at start-deployment time.341- NEVER use the Lambda extension without the `AWS_APPCONFIG_EXTENSION_*` environment variables. The extension preloads only when these variables are set; without them, `localhost:2772` returns 404.342343## Pre-flight safety checks344345- **MANDATORY CONFIRMATION GATE** before any state-changing CLI.346- **Snapshot before modification:** `list-deployments --application-id <app> --environment-id <env> --output json > /tmp/<env>-backup-$(date +%s).json`.347- **Verify rollback alarms** are in `OK` state before start-deployment.348- **Prefer additive configuration changes** (add a flag, add a key) over destructive (delete a flag, rename a key).349- **Validate configuration payload** against the profile schema before start-deployment.350351## Expert heuristic: "Bake time is the rollback window"352353Deep dive: [advanced-patterns.md](references/advanced-patterns.md). Bake time is the ONLY rollback window — lifecycle diagram, DeploymentDuration vs Bake vs FinalBake table, rollback-target selection, per-strategy root causes, extension/agent polling.354Seed an environment with a known-good COMPLETED deployment before risky rollouts.355356## Recent AWS features (2024-2026)357358Deep dive: [advanced-patterns.md](references/advanced-patterns.md). Lambda extension layer, AppConfig agent (EC2/ECS/EKS), CodeDeploy configs, feature-flag schema, KMS, typed profiles, FinalBakeTimeInMinutes, S3-backed profiles, EventBridge state events, ECS/EKS sidecar (2024-2026).359Loaded on demand when the task calls for the newest capabilities.360361## References (load on demand)362363- [Deployment strategies and rollback](references/deployment-strategies-and-rollback.md) — strategy parameter semantics, rollback model, CloudWatch alarm wiring, CodeDeploy integration, diagnostic runbooks364- [Lambda extension and runtime integration](references/lambda-extension-and-runtime-integration.md) — extension architecture, AppConfig agent, direct GetConfiguration, feature flag schema, runtime pitfalls365- [Advanced patterns](references/advanced-patterns.md) — Step-0 non-obvious behaviors, bake-time rollback-window heuristic, recent AWS features 2024-2026366- [Diagnostic commands](references/diagnostic-commands.md) — live-account pre-flight CLI listing, metadata gate table, stuck DEPLOYING / ROLLING_BACK / TERMINATED runbooks367- [Worked examples](references/worked-examples.md) — rollback-blocked (BLOCKED) worked example, create application / environment / profile boilerplate368369## Domain370371AWS CloudOps / AppConfig Deployment Lifecycle & Configuration372Operations.373374## AWS documentation375376- **AWS AppConfig User Guide** — https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html377- **AppConfig deployment strategies** — https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-deployment-strategy.html378- **AppConfig configuration profiles** — https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-and-profile.html379- **AppConfig working with CloudWatch alarms** — https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration.html380- **AppConfig Lambda extension** — https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-integration-lambda-extensions.html381- **AppConfig agent** — https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-agent.html382- **AppConfig feature flags** — https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-feature-flags.html383- **AppConfig integration with CodeDeploy** — https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-integration-codedeploy.html384- **AWS CLI AppConfig reference** — https://docs.aws.amazon.com/cli/latest/reference/appconfig/385- **AppConfig API Reference** — https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-API.html