This skill helps you master infrastructure as code with Terraform, Ansible, and CloudFormation for automated, reliable deployments.
npx playbooks add skill pluginagentmarketplace/custom-plugin-devops --skill iac
Master IaC with Terraform, Ansible, and CloudFormation for automated infrastructure.
| Name | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| tool | string | No | terraform | IaC tool |
| operation | string | Yes | - | Operation type |
# Terraform
terraform init
terraform plan -out=plan.tfplan
terraform apply plan.tfplan
terraform destroy
terraform fmt -recursive
terraform validate
terraform state list
terraform import aws_instance.web i-123
# State Management
terraform state mv old new
terraform state rm resource
terraform force-unlock LOCK_ID
# Ansible
ansible-playbook -i inventory playbook.yml
ansible-playbook playbook.yml --check --diff
ansible-playbook playbook.yml --tags nginx
ansible all -m ping -i inventory
ansible-vault encrypt secrets.yml
| Symptom | Root Cause | Solution |
|---------|------------|----------|
| State lock | Concurrent ops | Wait or force-unlock |
| Resource exists | Drift | Import or delete |
| Provider auth | Credentials | Check AWS_PROFILE |
| Cycle error | Dependencies | Restructure |
terraform validateterraform state listTF_LOG=DEBUG terraform planterraform import for each resourceWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.