AptlyStar

CloudFormation

Manage and inspect AWS CloudFormation stacks, resources, and drift

Instructions d'utilisation

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.

Outils

cloudformation_describe_stacks

List and describe CloudFormation stacks

Entrée

ParamètreTypeObligatoireDescription
awsRegionstringOuiAWS region (e.g., us-east-1)
awsAccessKeyIdstringOuiAWS access key ID
awsSecretAccessKeystringOuiAWS secret access key
stackNamestringNonStack name or ID to describe (omit to list all stacks)

Sortie

ParamètreTypeDescription
stacksarrayList of CloudFormation stacks with status, outputs, and tags

cloudformation_list_stack_resources

List all resources in a CloudFormation stack

Entrée

ParamètreTypeObligatoireDescription
awsRegionstringOuiAWS region (e.g., us-east-1)
awsAccessKeyIdstringOuiAWS access key ID
awsSecretAccessKeystringOuiAWS secret access key
stackNamestringOuiStack name or ID

Sortie

ParamètreTypeDescription
resourcesarrayList of stack resources with type, status, and drift information

cloudformation_detect_stack_drift

Initiate drift detection on a CloudFormation stack

Entrée

ParamètreTypeObligatoireDescription
awsRegionstringOuiAWS region (e.g., us-east-1)
awsAccessKeyIdstringOuiAWS access key ID
awsSecretAccessKeystringOuiAWS secret access key
stackNamestringOuiStack name or ID to detect drift on

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
awsRegionstringOuiAWS region (e.g., us-east-1)
awsAccessKeyIdstringOuiAWS access key ID
awsSecretAccessKeystringOuiAWS secret access key
stackDriftDetectionIdstringOuiThe drift detection ID returned by Detect Stack Drift

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
awsRegionstringOuiAWS region (e.g., us-east-1)
awsAccessKeyIdstringOuiAWS access key ID
awsSecretAccessKeystringOuiAWS secret access key
stackNamestringOuiStack name or ID
limitnumberNonMaximum number of events to return (default: 50)

Sortie

ParamètreTypeDescription
eventsarrayList of stack events with resource status and timestamps

cloudformation_get_template

Retrieve the template body for a CloudFormation stack

Entrée

ParamètreTypeObligatoireDescription
awsRegionstringOuiAWS region (e.g., us-east-1)
awsAccessKeyIdstringOuiAWS access key ID
awsSecretAccessKeystringOuiAWS secret access key
stackNamestringOuiStack name or ID

Sortie

ParamètreTypeDescription
templateBodystringThe template body as a JSON or YAML string
stagesAvailablearrayAvailable template stages

cloudformation_validate_template

Validate a CloudFormation template for syntax and structural correctness

Entrée

ParamètreTypeObligatoireDescription
awsRegionstringOuiAWS region (e.g., us-east-1)
awsAccessKeyIdstringOuiAWS access key ID
awsSecretAccessKeystringOuiAWS secret access key
templateBodystringOuiThe CloudFormation template body (JSON or YAML)

Sortie

ParamètreTypeDescription
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