Stack Update
StackUpdateService handles CloudFormation ChangeSet creation, review, and execution for root stack updates. All operations are human-gated and audited.
Base path: /stack-update
POST /stack-update/GetUpdateOptions
Section titled “POST /stack-update/GetUpdateOptions”GetUpdateOptions returns the current stack template version and available upgrade paths within the current distTag, plus any active (pending) changeset.
Request (GetUpdateOptionsRequest)
No fields.
Response (GetUpdateOptionsResponse)
| Field | Type | Description |
|---|---|---|
currentVersion | string | Current template version deployed in the stack. |
currentDistTag | string | Current distTag (e.g., “stable”, “edge”). |
nextMinor | UpdateOption? | Next available minor version bump within the current major version and distTag. Absent if already on the latest minor. |
nextMajor | UpdateOption? | Next available major version bump within the current distTag. Absence means no newer major version exists. Presence always implies breaking change. |
activeChangeSet | ActiveChangeSet? | Active (pending, not yet executed) changeset if one exists and is still valid. Absent if no changeset is currently pending. |
stackName | string | Root stack name (from the stack ARN). Always present. Generic identity field — the client derives console links from stack_name + region. |
region | string | AWS region the root stack lives in (from the stack ARN). Always present. |
POST /stack-update/CreateChangeSet
Section titled “POST /stack-update/CreateChangeSet”CreateChangeSet initiates a new changeset for the selected target version, superseding any prior pending changeset. Non-idempotent.
Request (CreateChangeSetRequest)
| Field | Type | Description |
|---|---|---|
targetTemplateVersion | string? | Target template version. If omitted, defaults to next_minor from GetUpdateOptions. To target next_major, explicitly pass next_major.version. Must match semver pattern if provided. |
parameters | ParameterValue[] | Explicit value for every parameter of the target template. The server rejects the request with an invalid-input error (before superseding any pending changeset) when an entry is missing, duplicated or unknown, when a value violates the template constraints, or when use_previous_value is misused. Exactly one entry per parameter of the target template is required. |
Response (CreateChangeSetResponse)
| Field | Type | Description |
|---|---|---|
changeSetId | string | CloudFormation ChangeSet ID. |
changeSetArn | string | CloudFormation ChangeSet ARN. |
POST /stack-update/DescribeChangeSet
Section titled “POST /stack-update/DescribeChangeSet”DescribeChangeSet retrieves the changeset status and resource-level detail. Serves both as a creation-status poll endpoint and a detail-fetch endpoint.
Request (DescribeChangeSetRequest)
| Field | Type | Description |
|---|---|---|
changeSetId | string | CloudFormation ChangeSet ID (from CreateChangeSetResponse or active_change_set). |
Response (DescribeChangeSetResponse)
| Field | Type | Description |
|---|---|---|
status | ChangeSetStatus | Changeset creation status. |
statusReason | string | CFN StatusReason on CREATE_FAILED; sanitized for client display. |
consoleUrl | string | Fully-formed AWS Console URL for this changeset. |
POST /stack-update/GetUpdateParameters
Section titled “POST /stack-update/GetUpdateParameters”GetUpdateParameters returns the CloudFormation parameters of the target template version: each with its constraints, the value the stack holds today and the value the server proposes, plus the stack parameters the target template no longer declares. Read-only.
Request (GetUpdateParametersRequest)
| Field | Type | Description |
|---|---|---|
targetTemplateVersion | string? | Target template version. If omitted, defaults to next_minor from GetUpdateOptions. Must be the latest available version for its track; otherwise the server rejects it. Must match semver pattern if provided. |
Response (GetUpdateParametersResponse)
| Field | Type | Description |
|---|---|---|
targetTemplateVersion | string | Target template version the parameters belong to, as bare semver (no “v” prefix). |
groups | ParameterGroup[] | Parameter groups in template order. Parameters the template does not group are listed in a trailing group with an empty id. |
parameters | TemplateParameter[] | All parameters of the target template, in template order. |
removed | RemovedParameter[] | Parameters the stack has today that the target template no longer declares. Submitting one of them in CreateChangeSet is rejected as an unknown key. |