AptlyStar

CloudFormation

Manage and inspect AWS CloudFormation stacks, resources, and drift

使用说明

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.

工具

cloudformation_describe_stacks

List and describe CloudFormation stacks

输入

参数类型必填描述
awsRegionstring是AWS region (e.g., us-east-1)
awsAccessKeyIdstring是AWS access key ID
awsSecretAccessKeystring是AWS secret access key
stackNamestring否Stack name or ID to describe (omit to list all stacks)

输出

参数类型描述
stacksarrayList of CloudFormation stacks with status, outputs, and tags

cloudformation_list_stack_resources

List all resources in a CloudFormation stack

输入

参数类型必填描述
awsRegionstring是AWS region (e.g., us-east-1)
awsAccessKeyIdstring是AWS access key ID
awsSecretAccessKeystring是AWS secret access key
stackNamestring是Stack name or ID

输出

参数类型描述
resourcesarrayList of stack resources with type, status, and drift information

cloudformation_detect_stack_drift

Initiate drift detection on a CloudFormation stack

输入

参数类型必填描述
awsRegionstring是AWS region (e.g., us-east-1)
awsAccessKeyIdstring是AWS access key ID
awsSecretAccessKeystring是AWS secret access key
stackNamestring是Stack name or ID to detect drift on

输出

参数类型描述
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

输入

参数类型必填描述
awsRegionstring是AWS region (e.g., us-east-1)
awsAccessKeyIdstring是AWS access key ID
awsSecretAccessKeystring是AWS secret access key
stackDriftDetectionIdstring是The drift detection ID returned by Detect Stack Drift

输出

参数类型描述
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

输入

参数类型必填描述
awsRegionstring是AWS region (e.g., us-east-1)
awsAccessKeyIdstring是AWS access key ID
awsSecretAccessKeystring是AWS secret access key
stackNamestring是Stack name or ID
limitnumber否Maximum number of events to return (default: 50)

输出

参数类型描述
eventsarrayList of stack events with resource status and timestamps

cloudformation_get_template

Retrieve the template body for a CloudFormation stack

输入

参数类型必填描述
awsRegionstring是AWS region (e.g., us-east-1)
awsAccessKeyIdstring是AWS access key ID
awsSecretAccessKeystring是AWS secret access key
stackNamestring是Stack name or ID

输出

参数类型描述
templateBodystringThe template body as a JSON or YAML string
stagesAvailablearrayAvailable template stages

cloudformation_validate_template

Validate a CloudFormation template for syntax and structural correctness

输入

参数类型必填描述
awsRegionstring是AWS region (e.g., us-east-1)
awsAccessKeyIdstring是AWS access key ID
awsSecretAccessKeystring是AWS secret access key
templateBodystring是The CloudFormation template body (JSON or YAML)

输出

参数类型描述
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