AgentSkillsCN

awsflow-cloudformation

使用 awsflow VS Code 扩展中的 CloudFormationTool,对 AWS CloudFormation 的堆栈、资源、更改集、类型、偏差检测以及堆栈集进行检查。

SKILL.md
--- frontmatter
name: awsflow-cloudformation
description: Inspect AWS CloudFormation stacks, resources, changesets, types, drift detection, and stack sets using the awsflow VS Code extension CloudFormationTool.

awsflow-cloudformation

Use the CloudFormationTool language tool in VS Code to inspect AWS CloudFormation stacks, resources, change sets, types, and drift status.

When to Use

  • User wants to list or describe CloudFormation stacks
  • User wants to view stack resources, events, or outputs
  • User wants to inspect change sets before applying them
  • User wants to check stack drift status
  • User wants to validate a template
  • User wants to view stack set details or operations
  • User wants to list or describe CloudFormation resource types
  • User wants to estimate template cost

Tool Reference

Tool name: CloudFormationTool

Input Schema

json
{
  "command": "<CommandName>",
  "params": { ... }
}

Commands (51 total)

CommandDescription
BatchDescribeTypeConfigurationsDescribe configurations for multiple resource types
DescribeAccountLimitsGet CloudFormation account limits
DescribeChangeSetDescribe a specific change set
DescribeChangeSetHooksDescribe hooks for a change set
DescribeGeneratedTemplateDescribe a generated template
DescribeOrganizationsAccessDescribe Organizations access status
DescribePublisherDescribe the calling account as a publisher
DescribeResourceScanDescribe a resource scan
DescribeStackDriftDetectionStatusCheck drift detection status for a stack
DescribeStackEventsList events for a stack
DescribeStackInstanceDescribe a stack instance in a stack set
DescribeStackRefactorDescribe a stack refactor operation
DescribeStackResourceDescribe a specific stack resource
DescribeStackResourceDriftsList resource drift results for a stack
DescribeStackResourcesDescribe all resources in a stack
DescribeStacksDescribe one or more stacks
DescribeStackSetDescribe a stack set
DescribeStackSetOperationDescribe an operation on a stack set
DescribeTypeDescribe a CloudFormation resource type
DescribeTypeRegistrationDescribe a type registration
DetectStackDriftInitiate drift detection on a stack
DetectStackResourceDriftDetect drift on a specific resource
DetectStackSetDriftInitiate drift detection on a stack set
EstimateTemplateCostEstimate cost for a template
GetGeneratedTemplateRetrieve a generated template
GetHookResultGet result of a hook invocation
GetStackPolicyGet the stack policy for a stack
GetTemplateGet the template body for a stack
GetTemplateSummaryGet template metadata and parameters
ListChangeSetsList change sets for a stack
ListExportsList exported output values
ListGeneratedTemplatesList generated templates
ListHookResultsList hook results
ListImportsList stacks importing an export
ListResourceScanRelatedResourcesList related resources from a scan
ListResourceScanResourcesList resources from a scan
ListResourceScansList resource scans
ListStackInstanceResourceDriftsList instance resource drifts
ListStackInstancesList instances in a stack set
ListStackRefactorActionsList refactor actions
ListStackRefactorsList stack refactors
ListStackResourcesList resources in a stack
ListStacksList all stacks (with status filter)
ListStackSetAutoDeploymentTargetsList auto-deployment targets
ListStackSetOperationResultsList results of a stack set operation
ListStackSetOperationsList operations on a stack set
ListStackSetsList all stack sets
ListTypeRegistrationsList type registrations
ListTypesList registered resource types
ListTypeVersionsList versions of a type
ValidateTemplateValidate a CloudFormation template

Parameters

ParameterTypeDescription
StackNamestringStack name or ID (Required by: DescribeStacks, DescribeStackResources, DescribeStackEvents, DescribeStackDriftDetectionStatus, GetStackPolicy, GetTemplate, GetTemplateSummary, ListStackResources, DetectStackDrift)
StackSetNamestringStack set name or ID (Required by: DescribeStackSet, DescribeStackSetOperation, ListStackSetAutoDeploymentTargets, ListStackSetOperationResults, ListStackSetOperations, DetectStackSetDrift, ListStackInstances)
ChangeSetNamestringChange set name or ID (Required by: DescribeChangeSet, ListChangeSets)
TypeNamestringResource type name (Required by: DescribeType, ListTypeVersions, DescribeTypeRegistration)
TypeArnstringResource type ARN (Required by: DescribeType)
NextTokenstringPagination token (Used by: most List commands)
MaxResultsnumberMaximum records to return (Used by: most List commands)

Usage Examples

List all stacks

json
{ "command": "ListStacks", "params": {} }

Describe a specific stack

json
{ "command": "DescribeStacks", "params": { "StackName": "my-app-stack" } }

View stack resources

json
{ "command": "DescribeStackResources", "params": { "StackName": "my-app-stack" } }

View stack events

json
{ "command": "DescribeStackEvents", "params": { "StackName": "my-app-stack" } }

Get template body

json
{ "command": "GetTemplate", "params": { "StackName": "my-app-stack" } }

Get template summary

json
{ "command": "GetTemplateSummary", "params": { "StackName": "my-app-stack" } }

List change sets for a stack

json
{ "command": "ListChangeSets", "params": { "ChangeSetName": "my-app-stack" } }

Detect drift on a stack

json
{ "command": "DetectStackDrift", "params": { "StackName": "my-app-stack" } }

Describe resource drift results

json
{ "command": "DescribeStackResourceDrifts", "params": { "StackName": "my-app-stack" } }

Validate a template

json
{ "command": "ValidateTemplate", "params": {} }

List exported values

json
{ "command": "ListExports", "params": {} }

Describe a stack set

json
{ "command": "DescribeStackSet", "params": { "StackSetName": "my-stack-set" } }

List registered resource types

json
{ "command": "ListTypes", "params": {} }

Related Services

CloudFormation manages infrastructure for virtually every AWS service. Related awsflow tools:

RelationshipTool
Stacks create S3 bucketsS3Tool / S3FileOperationsTool
Stacks create Lambda functionsLambdaTool
Stacks create DynamoDB tablesDynamoDBTool
Stacks create EC2 instancesEC2Tool
Stacks create IAM roles/policiesIAMTool
Stacks create RDS databasesRDSTool / RDSDataTool
Stacks create SNS topicsSNSTool
Stacks create SQS queuesSQSTool
Stacks create Step FunctionsStepFuncTool
Stacks create API GatewaysAPIGatewayTool
Stacks create Glue jobsGlueTool
Stacks create EMR clustersEMRTool
Stack events in CloudWatchCloudWatchLogTool
Verify identity & permissionsSTSTool

Tips

  • Use ListStacks to get an overview, then DescribeStacks with a specific StackName for details.
  • Use GetTemplate to retrieve the actual template body of a deployed stack.
  • Use DetectStackDriftDescribeStackResourceDrifts to check if resources have drifted from the template.
  • ListExports + ListImports helps trace cross-stack dependencies.
  • ValidateTemplate checks template syntax without deploying.