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