AWS CloudFormation · Capability

AWS CloudFormation API — Stack Drift

AWS CloudFormation API — Stack Drift. 4 operations. Lead operation: Check Status of Drift Detection. Self-contained Naftiko capability covering one Cloudformation business surface.

Run with Naftiko CloudformationStack Drift

What You Can Do

POST
Describestackdriftdetectionstatus — Check Status of Drift Detection
/v1/action-describestackdriftdetectionstatus
POST
Describestackresourcedrifts — Get Drift Information for Stack Resources
/v1/action-describestackresourcedrifts
POST
Detectstackdrift — Detect Configuration Drift on a Stack
/v1/action-detectstackdrift
POST
Detectstackresourcedrift — Detect Drift on a Specific Resource
/v1/action-detectstackresourcedrift

MCP Tools

check-status-drift-detection

Check Status of Drift Detection

read-only
get-drift-information-stack-resources

Get Drift Information for Stack Resources

read-only
detect-configuration-drift-stack

Detect Configuration Drift on a Stack

detect-drift-specific-resource

Detect Drift on a Specific Resource

Capability Spec

cloudformation-stack-drift.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: AWS CloudFormation API — Stack Drift
  description: 'AWS CloudFormation API — Stack Drift. 4 operations. Lead operation: Check Status of Drift Detection. Self-contained
    Naftiko capability covering one Cloudformation business surface.'
  tags:
  - Cloudformation
  - Stack Drift
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOUDFORMATION_API_KEY: CLOUDFORMATION_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloudformation-stack-drift
    baseUri: https://cloudformation.{region}.amazonaws.com
    description: AWS CloudFormation API — Stack Drift business capability. Self-contained, no shared references.
    resources:
    - name: ?Action=DescribeStackDriftDetectionStatus
      path: /?Action=DescribeStackDriftDetectionStatus
      operations:
      - name: describestackdriftdetectionstatus
        method: POST
        description: Check Status of Drift Detection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ?Action=DescribeStackResourceDrifts
      path: /?Action=DescribeStackResourceDrifts
      operations:
      - name: describestackresourcedrifts
        method: POST
        description: Get Drift Information for Stack Resources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ?Action=DetectStackDrift
      path: /?Action=DetectStackDrift
      operations:
      - name: detectstackdrift
        method: POST
        description: Detect Configuration Drift on a Stack
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ?Action=DetectStackResourceDrift
      path: /?Action=DetectStackResourceDrift
      operations:
      - name: detectstackresourcedrift
        method: POST
        description: Detect Drift on a Specific Resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.CLOUDFORMATION_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: cloudformation-stack-drift-rest
    port: 8080
    description: REST adapter for AWS CloudFormation API — Stack Drift. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/action-describestackdriftdetectionstatus
      name: action-describestackdriftdetectionstatus
      description: REST surface for ?Action=DescribeStackDriftDetectionStatus.
      operations:
      - method: POST
        name: describestackdriftdetectionstatus
        description: Check Status of Drift Detection
        call: cloudformation-stack-drift.describestackdriftdetectionstatus
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-describestackresourcedrifts
      name: action-describestackresourcedrifts
      description: REST surface for ?Action=DescribeStackResourceDrifts.
      operations:
      - method: POST
        name: describestackresourcedrifts
        description: Get Drift Information for Stack Resources
        call: cloudformation-stack-drift.describestackresourcedrifts
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-detectstackdrift
      name: action-detectstackdrift
      description: REST surface for ?Action=DetectStackDrift.
      operations:
      - method: POST
        name: detectstackdrift
        description: Detect Configuration Drift on a Stack
        call: cloudformation-stack-drift.detectstackdrift
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-detectstackresourcedrift
      name: action-detectstackresourcedrift
      description: REST surface for ?Action=DetectStackResourceDrift.
      operations:
      - method: POST
        name: detectstackresourcedrift
        description: Detect Drift on a Specific Resource
        call: cloudformation-stack-drift.detectstackresourcedrift
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloudformation-stack-drift-mcp
    port: 9090
    transport: http
    description: MCP adapter for AWS CloudFormation API — Stack Drift. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: check-status-drift-detection
      description: Check Status of Drift Detection
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: cloudformation-stack-drift.describestackdriftdetectionstatus
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-drift-information-stack-resources
      description: Get Drift Information for Stack Resources
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: cloudformation-stack-drift.describestackresourcedrifts
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: detect-configuration-drift-stack
      description: Detect Configuration Drift on a Stack
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloudformation-stack-drift.detectstackdrift
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: detect-drift-specific-resource
      description: Detect Drift on a Specific Resource
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloudformation-stack-drift.detectstackresourcedrift
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.