AptlyStar

CloudFormation

Manage and inspect AWS CloudFormation stacks, resources, and drift

Instrucciones de uso

Integrate AWS CloudFormation into workflows. Describe stacks, list resources, detect drift, view stack events, retrieve templates, and validate templates. Requires AWS access key and secret access key.

Herramientas

cloudformation_describe_stacks

List and describe CloudFormation stacks

Entrada

ParámetroTipoObligatorioDescripción
awsRegionstringSíAWS region (e.g., us-east-1)
awsAccessKeyIdstringSíAWS access key ID
awsSecretAccessKeystringSíAWS secret access key
stackNamestringNoStack name or ID to describe (omit to list all stacks)

Salida

ParámetroTipoDescripción
stacksarrayList of CloudFormation stacks with status, outputs, and tags

cloudformation_list_stack_resources

List all resources in a CloudFormation stack

Entrada

ParámetroTipoObligatorioDescripción
awsRegionstringSíAWS region (e.g., us-east-1)
awsAccessKeyIdstringSíAWS access key ID
awsSecretAccessKeystringSíAWS secret access key
stackNamestringSíStack name or ID

Salida

ParámetroTipoDescripción
resourcesarrayList of stack resources with type, status, and drift information

cloudformation_detect_stack_drift

Initiate drift detection on a CloudFormation stack

Entrada

ParámetroTipoObligatorioDescripción
awsRegionstringSíAWS region (e.g., us-east-1)
awsAccessKeyIdstringSíAWS access key ID
awsSecretAccessKeystringSíAWS secret access key
stackNamestringSíStack name or ID to detect drift on

Salida

ParámetroTipoDescripción
stackDriftDetectionIdstringID to use with Describe Stack Drift Detection Status to check results

cloudformation_describe_stack_drift_detection_status

Check the status of a stack drift detection operation

Entrada

ParámetroTipoObligatorioDescripción
awsRegionstringSíAWS region (e.g., us-east-1)
awsAccessKeyIdstringSíAWS access key ID
awsSecretAccessKeystringSíAWS secret access key
stackDriftDetectionIdstringSíThe drift detection ID returned by Detect Stack Drift

Salida

ParámetroTipoDescripción
stackIdstringThe stack ID
stackDriftDetectionIdstringThe drift detection ID
stackDriftStatusstringDrift status (DRIFTED, IN_SYNC, NOT_CHECKED)
detectionStatusstringDetection status (DETECTION_IN_PROGRESS, DETECTION_COMPLETE, DETECTION_FAILED)
detectionStatusReasonstringReason if detection failed
driftedStackResourceCountnumberNumber of resources that have drifted
timestampnumberTimestamp of the detection

cloudformation_describe_stack_events

Get the event history for a CloudFormation stack

Entrada

ParámetroTipoObligatorioDescripción
awsRegionstringSíAWS region (e.g., us-east-1)
awsAccessKeyIdstringSíAWS access key ID
awsSecretAccessKeystringSíAWS secret access key
stackNamestringSíStack name or ID
limitnumberNoMaximum number of events to return (default: 50)

Salida

ParámetroTipoDescripción
eventsarrayList of stack events with resource status and timestamps

cloudformation_get_template

Retrieve the template body for a CloudFormation stack

Entrada

ParámetroTipoObligatorioDescripción
awsRegionstringSíAWS region (e.g., us-east-1)
awsAccessKeyIdstringSíAWS access key ID
awsSecretAccessKeystringSíAWS secret access key
stackNamestringSíStack name or ID

Salida

ParámetroTipoDescripción
templateBodystringThe template body as a JSON or YAML string
stagesAvailablearrayAvailable template stages

cloudformation_validate_template

Validate a CloudFormation template for syntax and structural correctness

Entrada

ParámetroTipoObligatorioDescripción
awsRegionstringSíAWS region (e.g., us-east-1)
awsAccessKeyIdstringSíAWS access key ID
awsSecretAccessKeystringSíAWS secret access key
templateBodystringSíThe CloudFormation template body (JSON or YAML)

Salida

ParámetroTipoDescripción
descriptionstringTemplate description
parametersarrayTemplate parameters with defaults and descriptions
capabilitiesarrayRequired capabilities (e.g., CAPABILITY_IAM)
capabilitiesReasonstringReason capabilities are required
declaredTransformsarrayTransforms used in the template (e.g., AWS::Serverless-2016-10-31)

On this page