infrastructure-as-code

Automate AWS infrastructure provisioning and management using Terraform.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/chavangorakh1999/sde-skills --skill infrastructure-as-code-chavangorakh1999
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infrastructure-as-code
Source: https://github.com/chavangorakh1999/sde-skills/tree/main/sde-devops/skills/infrastructure-as-code
Command: npx skills add https://github.com/chavangorakh1999/sde-skills --skill infrastructure-as-code-chavangorakh1999

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of managing and provisioning cloud infrastructure in a repeatable, version-controlled, and automated manner using Infrastructure as Code (IaC) principles with Terraform.

Core Features & Use Cases

  • Declarative Infrastructure Definition: Define cloud resources (like AWS ECS, RDS, Load Balancers) using HashiCorp Configuration Language (HCL).
  • State Management: Manages the state of your infrastructure, enabling safe updates and rollbacks.
  • Modularity and Reusability: Utilizes Terraform modules for defining reusable infrastructure components (e.g., RDS instances, VPCs).
  • Environment Management: Supports multiple environments (dev, staging, prod) using Terraform workspaces.
  • Use Case: Provision a complete Node.js application stack on AWS, including ECS Fargate for compute, RDS for the database, and an Application Load Balancer, all defined and managed by Terraform.

Quick Start

Use the infrastructure-as-code skill to provision a new AWS ECS service with an RDS database using Terraform.

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 AWS ECS and RDS infrastructure using Terraform?

You can provision AWS ECS and RDS infrastructure using Terraform by declaratively defining cloud resources in HashiCorp Configuration Language. This approach automates the setup of compute, databases, and load balancers while maintaining state for safe updates.

What is the best way to manage multiple environments like dev and prod with Terraform?

Managing multiple environments like dev and prod with Terraform is best handled using Terraform workspaces. This allows you to maintain separate state files for each environment while reusing the same declarative infrastructure modules.

Can I use Terraform modules to provision reusable AWS VPC and RDS components?

Yes, you can use Terraform modules to provision reusable AWS VPC and RDS components. Modularity allows you to define reusable infrastructure blocks, ensuring consistent and repeatable resource deployments across different projects.

How does Terraform state management work for safe infrastructure updates and rollbacks?

Terraform state management tracks your infrastructure's current configuration to enable safe updates and rollbacks. By maintaining a state file, it maps declarative definitions to real-world AWS resources, preventing unintended modifications during provisioning.

How do I integrate GitOps workflows for CI/CD with Terraform infrastructure provisioning?

You can integrate GitOps workflows for CI/CD with Terraform by storing your declarative infrastructure definitions in version control. This enables automated, safe infrastructure changes and multi-environment deployments directly through your pipeline.

Does this Terraform provisioning approach support AWS Fargate and Application Load Balancers?

Yes, this Terraform provisioning approach fully supports AWS Fargate and Application Load Balancers. You can define a complete application stack declaratively, combining ECS Fargate compute, RDS databases, and load balancing components.