mcpField
C
cloudformation

cloudformation

github.com/full-stack-skillsCloud & DevOps166 installsUpdated 4w ago
Repository

About cloudformation

A skill for writing and debugging AWS CloudFormation templates and managing AWS resources and stacks. It covers stack changes, nested stacks, cross-stack references, and template security practices for infrastructure automation.

Key features

  1. 01Write and debug CloudFormation templates
  2. 02Create, update, and delete stacks
  3. 03Preview changes with change sets
  4. 04Package reusable resources in nested stacks
  5. 05Share resources with Export and Import-Value
  6. 06Protect sensitive parameters and configure conditions

Use cases

  1. 01Author templates for AWS infrastructure
  2. 02Preview and manage stack updates
  3. 03Reuse resource definitions and share outputs across stacks

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/full-stack-skills/devops-skills --skill cloudformation

After installing, type/cloudformationin Claude Code to confirm it loaded.

Bundled filesagents/openai.yamlLICENSE.txt

Details

From the project README

When to use this skill

Use this skill whenever the user wants to:

  • 编写或调试 CloudFormation 模板(YAML/JSON)
  • 创建和管理 AWS 资源(EC2、S3、RDS、Lambda 等)
  • 配置 CloudFormation stacks、nested stacks、stack sets
  • 使用 CloudFormation 最佳实践实现基础设施自动化

How to use this skill

  1. 模板结构:AWSTemplateFormatVersion、Description、Parameters、Resources、Outputs。
  2. 工作流:创建堆栈 → 更新堆栈 → 删除堆栈;使用变更集预览变更。
  3. 嵌套堆栈:将重复使用的资源封装为 nested stack,提高复用性。
  4. Cross-stack references:通过 Export/Import-Value 在堆栈间共享资源。

Best Practices

  • 使用 YAML 格式替代 JSON,便于版本控制和 Code Review。
  • 敏感信息用 Parameter + NoEcho 或 Secrets Manager,不在模板中硬编码。
  • 使用 Mappings 和 Conditions 实现环境差异化配置。
  • 堆栈名称加环境前缀(dev-、prod-),避免冲突。

Keywords

cloudformation, aws, infrastructure as code, cloudformation template, 亚马逊云科技, aws iac, 基础设施自动化

Comments

Markdown supported