infrastructure-as-code

Automate cloud infrastructure provisioning with Terraform HCL and AWS CDK TypeScript.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/duylinhdang1998/claude-template-agent --skill infrastructure-as-code-duylinhdang1998
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infrastructure-as-code
Source: https://github.com/duylinhdang1998/claude-template-agent/tree/main/plugins/vfm-agent-company/skills/infrastructure-as-code
Command: npx skills add https://github.com/duylinhdang1998/claude-template-agent --skill infrastructure-as-code-duylinhdang1998

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates and standardizes cloud resource provisioning to eliminate manual, error-prone configuration and ensure repeatable, auditable infrastructure deployments across environments.

Core Features & Use Cases

  • Terraform HCL: Provide reusable Terraform modules, variables, and recommended commands for init, plan, apply, fmt, and validate to manage AWS resources.
  • AWS CDK (TypeScript): Define stacks and constructs for VPCs, ECS/Fargate services, load balancers, and outputs with examples for bootstrapping, synth, deploy, and diff workflows.
  • Multi-environment & Best Practices: Guidance on environment separation (dev/staging/prod), remote state locking, tagging, least-privilege IAM, and testing/assertions for infrastructure code.
  • Use Case: Create a reproducible architecture that provisions a VPC, public and private subnets, an ECS Fargate service behind an ALB, and RDS instance with environment-specific configurations.

Quick Start

Ask the agent to generate Terraform HCL or an AWS CDK TypeScript stack for a web service with VPC, public subnets, an ALB-backed ECS service, and separate dev and prod configurations.

Frequently Asked Questions about infrastructure-as-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I provision an AWS VPC with ECS Fargate and RDS using Terraform?

Provision AWS VPC, ECS Fargate, and RDS resources using Terraform by defining reusable HCL modules and variables for VPCs, subnets, and EC2/ECS services. This approach ensures reproducible, version-controlled infrastructure deployments across environments.

What is the best way to manage multi-environment infrastructure deployments with AWS CDK?

Manage multi-environment infrastructure deployments with AWS CDK by defining TypeScript constructs for environment separation across dev, staging, and prod. This provides reproducible architecture with remote state locking and environment-specific configurations for ECS and RDS.

Can I use AWS CDK TypeScript to define an ALB-backed ECS Fargate service?

Yes, you can use AWS CDK TypeScript to define stacks and constructs for an ALB-backed ECS Fargate service. The workflow includes bootstrapping, synth, deploy, and diff operations to manage load balancers and Fargate services with environment-specific configurations.

How do I apply Terraform best practices for remote state and least-privilege IAM?

Apply Terraform best practices by using remote state locking, tagging, and least-privilege IAM policies within your HCL modules. This ensures repeatable, auditable infrastructure deployments with proper environment separation and testing assertions for infrastructure code.

Does this approach support standard plan and deploy operations for multi-environment setups?

Yes, infrastructure-as-code supports standard plan, synth, deploy, and destroy operations for multi-environment setups. It handles environment separation for dev and prod configurations, applying reproducible architecture across VPCs, subnets, and ECS services with remote state management.