Amazon CloudFormation Templates API

Operations for working with CloudFormation templates

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /?Action=GetTemplate Get a stack's template body · Get Template #
Ask an LLM
“How do I download the template CloudFormation used to create a stack?”
“Can I get a deleted stack's template?”
Tell an agent
Get the template body for stack {stack}.
Get the {stage} template for stack {stack}.
POST /?Action=ValidateTemplate Validate a template · Validate Template #
Ask an LLM
“How do I check that a template is valid JSON or YAML before I create a stack?”
“Can I validate a template from a URL?”
Tell an agent
Validate this template body.
Validate the template at {url}.
POST /?Action=GetTemplateSummary Summarize a template's parameters · Get Template Summary #
Ask an LLM
“What parameters does a template expect, and what are their defaults?”
“Can I preview a template's summary before creating a stack?”
Tell an agent
Summarize the template at {url}.
Show the parameter summary for stack {stack}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-cloudformation:amazon-cloudformation-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-cloudformation-templates-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS CloudFormation Templates API
  version: '2010-05-15'
  description: Generated from AWS's published Smithy model for AWS CloudFormation. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://cloudformation.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /?Action=GetTemplate:
    post:
      operationId: GetTemplate
      summary: Get Template
      description: Returns the template body for a specified stack. You can get the template for running or deleted stacks.
        For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted. If the template
        doesn't exist, a ValidationError is returned.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/GetTemplateOutput'
        '404':
          description: ChangeSetNotFoundException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ChangeSetNotFoundException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: GetTemplate
                  Version:
                    type: string
                    const: '2010-05-15'
              - $ref: '#/components/schemas/GetTemplateInput'
      tags:
      - Templates
  /?Action=ValidateTemplate:
    post:
      operationId: ValidateTemplate
      summary: Validate Template
      description: Validates a specified template. CloudFormation first checks if the template is valid JSON. If it isn't,
        CloudFormation checks if the template is valid YAML. If both these checks fail, CloudFormation returns a template
        validation error.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ValidateTemplateOutput'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: ValidateTemplate
                  Version:
                    type: string
                    const: '2010-05-15'
              - $ref: '#/components/schemas/ValidateTemplateInput'
      tags:
      - Templates
  /?Action=GetTemplateSummary:
    post:
      operationId: GetTemplateSummary
      summary: Get Template Summary
      description: Returns information about a new or existing template. The GetTemplateSummary action is useful for viewing
        parameter information, such as default parameter values and parameter types, before you create or update a stack or
        StackSet. You can use the GetTemplateSummary action when you submit a template, or you can get template information
        for a StackSet, or a running or deleted stack. For deleted stacks, GetTemplateSummary returns the template information
        for up to 90 days after the stack has been deleted. If the template doesn't exist, a ValidationError is returned.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/GetTemplateSummaryOutput'
        '404':
          description: StackSetNotFoundException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/StackSetNotFoundException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: GetTemplateSummary
                  Version:
                    type: string
                    const: '2010-05-15'
              - $ref: '#/components/schemas/GetTemplateSummaryInput'
      tags:
      - Templates
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: cloudformation
  schemas:
    ChangeSetNotFoundException:
      type: object
      properties:
        Message:
          type: string
    GetTemplateInput:
      type: object
      properties:
        StackName:
          type: string
          description: 'The name or the unique stack ID that''s associated with the stack, which aren''t always interchangeable:
            Running stacks: You can specify either the stack''s name or its unique stack ID. Deleted stacks: You must specify
            the unique stack ID.'
        ChangeSetName:
          type: string
          description: The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated
            template. If you specify a name, you must also specify the StackName.
        TemplateStage:
          type: string
          enum:
          - Original
          - Processed
          description: For templates that include transforms, the stage of the template that CloudFormation returns. To get
            the user-submitted template, specify Original. To get the template after CloudFormation has processed all transforms,
            specify Processed. If the template doesn't include transforms, Original and Processed return the same template.
            By default, CloudFormation specifies Processed.
    GetTemplateOutput:
      type: object
      properties:
        TemplateBody:
          type: string
          description: Structure that contains the template body. CloudFormation returns the same template that was used when
            the stack was created.
        StagesAvailable:
          type: array
          items:
            type: string
            enum:
            - Original
            - Processed
          description: The stage of the template that you can retrieve. For stacks, the Original and Processed templates are
            always available. For change sets, the Original template is always available. After CloudFormation finishes creating
            the change set, the Processed template becomes available.
    GetTemplateSummaryInput:
      type: object
      properties:
        TemplateBody:
          type: string
          description: 'Structure that contains the template body with a minimum length of 1 byte and a maximum length of
            51,200 bytes. Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody,
            or TemplateURL.'
        TemplateURL:
          type: string
          description: 'The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB)
            that''s located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must
            start with https://. Conditional: You must specify only one of the following parameters: StackName, StackSetName,
            TemplateBody, or TemplateURL.'
        StackName:
          type: string
          description: 'The name or the stack ID that''s associated with the stack, which aren''t always interchangeable.
            For running stacks, you can specify either the stack''s name or its unique stack ID. For deleted stack, you must
            specify the unique stack ID. Conditional: You must specify only one of the following parameters: StackName, StackSetName,
            TemplateBody, or TemplateURL.'
        StackSetName:
          type: string
          description: 'The name or unique ID of the StackSet from which the stack was created. Conditional: You must specify
            only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.'
        CallAs:
          type: string
          enum:
          - SELF
          - DELEGATED_ADMIN
          description: '[Service-managed permissions] Specifies whether you are acting as an account administrator in the
            organization''s management account or as a delegated administrator in a member account. By default, SELF is specified.
            Use SELF for StackSets with self-managed permissions. If you are signed in to the management account, specify
            SELF. If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services
            account must be registered as a delegated administrator in the management account. For more information, see Register
            a delegated administrator in the CloudFor'
        TemplateSummaryConfig:
          $ref: '#/components/schemas/TemplateSummaryConfig'
    GetTemplateSummaryOutput:
      type: object
      properties:
        Parameters:
          type: array
          items:
            $ref: '#/components/schemas/ParameterDeclaration'
          description: A list of parameter declarations that describe various properties for each parameter.
        Description:
          type: string
          description: The value that's defined in the Description property of the template.
        Capabilities:
          type: array
          items:
            type: string
            enum:
            - CAPABILITY_IAM
            - CAPABILITY_NAMED_IAM
            - CAPABILITY_AUTO_EXPAND
          description: The capabilities found within the template. If your template contains IAM resources, you must specify
            the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the CreateStack or UpdateStack
            actions with your template; otherwise, those actions return an InsufficientCapabilities error. For more information,
            see Acknowledging IAM resources in CloudFormation templates.
        CapabilitiesReason:
          type: string
          description: The list of resources that generated the values in the Capabilities response element.
        ResourceTypes:
          type: array
          items:
            type: string
          description: A list of all the template resource types that are defined in the template, such as AWS::EC2::Instance,
            AWS::Dynamo::Table, and Custom::MyCustomInstance.
        Version:
          type: string
          description: The Amazon Web Services template format version, which identifies the capabilities of the template.
        Metadata:
          type: string
          description: The value that's defined for the Metadata property of the template.
        DeclaredTransforms:
          type: array
          items:
            type: string
          description: A list of the transforms that are declared in the template.
        ResourceIdentifierSummaries:
          type: array
          items:
            $ref: '#/components/schemas/ResourceIdentifierSummary'
          description: A list of resource identifier summaries that describe the target resources of an import operation and
            the properties you can provide during the import to identify the target resources. For example, BucketName is
            a possible identifier property for an AWS::S3::Bucket resource.
        Warnings:
          $ref: '#/components/schemas/Warnings'
    ParameterConstraints:
      type: object
      properties:
        AllowedValues:
          type: array
          items:
            type: string
          description: A list of values that are permitted for a parameter.
    ParameterDeclaration:
      type: object
      properties:
        ParameterKey:
          type: string
          description: The name that's associated with the parameter.
        DefaultValue:
          type: string
          description: The default value of the parameter.
        ParameterType:
          type: string
          description: The type of parameter.
        NoEcho:
          type: boolean
          description: Flag that indicates whether the parameter value is shown as plain text in logs and in the Amazon Web
            Services Management Console.
        Description:
          type: string
          description: The description that's associate with the parameter.
        ParameterConstraints:
          $ref: '#/components/schemas/ParameterConstraints'
    ResourceIdentifierSummary:
      type: object
      properties:
        ResourceType:
          type: string
          description: The template resource type of the target resources, such as AWS::S3::Bucket.
        LogicalResourceIds:
          type: array
          items:
            type: string
          description: The logical IDs of the target resources of the specified ResourceType, as defined in the import template.
        ResourceIdentifiers:
          type: array
          items:
            type: string
          description: The resource properties you can provide during the import to identify your target resources. For example,
            BucketName is a possible identifier property for AWS::S3::Bucket resources.
    StackSetNotFoundException:
      type: object
      properties:
        Message:
          type: string
    TemplateParameter:
      type: object
      properties:
        ParameterKey:
          type: string
          description: The name associated with the parameter.
        DefaultValue:
          type: string
          description: The default value associated with the parameter.
        NoEcho:
          type: boolean
          description: Flag indicating whether the parameter should be displayed as plain text in logs and UIs.
        Description:
          type: string
          description: User defined description associated with the parameter.
    TemplateSummaryConfig:
      type: object
      properties:
        TreatUnrecognizedResourceTypesAsWarnings:
          type: boolean
          description: If set to True, any unrecognized resource types generate warnings and not an error. Any unrecognized
            resource types are returned in the Warnings output parameter.
    ValidateTemplateInput:
      type: object
      properties:
        TemplateBody:
          type: string
          description: 'Structure that contains the template body with a minimum length of 1 byte and a maximum length of
            51,200 bytes. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is
            used.'
        TemplateURL:
          type: string
          description: 'The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB)
            that is located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must
            start with https://. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody
            is used.'
    ValidateTemplateOutput:
      type: object
      properties:
        Parameters:
          type: array
          items:
            $ref: '#/components/schemas/TemplateParameter'
          description: A list of TemplateParameter structures.
        Description:
          type: string
          description: The description found within the template.
        Capabilities:
          type: array
          items:
            type: string
            enum:
            - CAPABILITY_IAM
            - CAPABILITY_NAMED_IAM
            - CAPABILITY_AUTO_EXPAND
          description: The capabilities found within the template. If your template contains IAM resources, you must specify
            the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the CreateStack or UpdateStack
            actions with your template; otherwise, those actions return an InsufficientCapabilities error. For more information,
            see Acknowledging IAM resources in CloudFormation templates.
        CapabilitiesReason:
          type: string
          description: The list of resources that generated the values in the Capabilities response element.
        DeclaredTransforms:
          type: array
          items:
            type: string
          description: A list of the transforms that are declared in the template.
    Warnings:
      type: object
      properties:
        UnrecognizedResourceTypes:
          type: array
          items:
            type: string
          description: A list of all of the unrecognized resource types. This is only returned if the TemplateSummaryConfig
            parameter has the TreatUnrecognizedResourceTypesAsWarning configuration set to True.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/cloudformation/service/2010-05-15/cloudformation-2010-05-15.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)