- Home
- Skills
- DevOps & Cloud
- Terraform AWS
Terraform AWS
by Claudio M
Expert AWS Terraform engineering for modular, multi-environment infrastructure following strict dev-to-prod workflows.
$5
Works with the AI Agents you already use
Terraform AWS
Example session with this skill installed
Create a new resource module for an S3 bucket with versioning enabled and a lifecycle rule to transition objects to Glacier after 90 days.
- Read your context and instructions
- Compiled the terraform aws
I have created the S3 bucket resource module under infra/modules/s3-bucket/. This module follows the naming principles, includes variable validations, and sets up the required documentation.
S3 Bucket Module
# infra/modules/s3-bucket/main.tf
resource "aws_s3_bucket" "this" {
bucket = var.bucket_name
tags = var.tags
}
resource "aws_s3_bucket_versioning" "this" {
bucket = aws_s3_bucket.this.id
versioning_configuration {
status = var.enable_versioning ? "Enabled" : "Suspended"
}
}
resource "aws_s3_bucket_lifecycle_configuration" "this" {
bucket = aws_s3_bucket.this.id
rule {
id = "glacier-transition"
status = "Enabled"
transition {
days = var.transition_days
storage_class = "GLACIER"
}
}
}
# infra/modules/s3-bucket/variables.tf
variable "bucket_name" {
description = "The name of the S3 bucket"
type = string
nullable = false
}
variable "enable_versioning" {
description = "Whether to enable versioning"
type = bool
default = true
}
variable "transition_days" {
description = "Number of days before transitioning to Glacier"
type = number
default = 90
validation {
condition = var.transition_days > 0
error_message = "Transition days must be a positive integer."
}
}
variable "tags" {
description = "A map of tags to assign to the resource"
type = map(string)
default = {}
}
# infra/modules/s3-bucket/outputs.tf
output "bucket_id_string" {
description = "The name/ID of the bucket"
value = aws_s3_bucket.this.id
}
output "bucket_arn_string" {
description = "The ARN of the bucket"
value = aws_s3_bucket.this.arn
}
# infra/modules/s3-bucket/versions.tf
terraform {
required_version = ">= 1.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.0"
}
}
}
Next steps
- Run
terraform fmt -recursiveto ensure consistent spacing. - Initialize the module with
terraform initto validate the provider constraints. - Add a usage example to the
infra/modules/s3-bucket/README.md.
Connects securely to your tools. The creator never sees your data.
About this skill
Infrastructure as Code often turns into a disorganized mess of hardcoded values and inconsistent resource naming. This skill enforces a strict, hierarchical structure for AWS Terraform projects, ensuring code is modular, documented, and production-ready.
What it does
- Standardizes layouts by organizing code into reusable resource modules, infrastructure modules, and environment-specific compositions.
- Enforces naming conventions using underscored identifiers, pluralized collections, and descriptive resource labels like
aws_vpc.this. - Automates documentation by generating READMEs that include usage examples, requirements, inputs, and outputs for every module.
- Manages environments by synchronizing changes across
dev,test,uat,preprod, andprodusingtfvars.json. - Hardens security by ensuring secrets are sourced from Secrets Manager or Parameter Store via write-only arguments to keep them out of state files.
How it works
- Scope identification determines if a change belongs in a resource module, infrastructure module, or composition.
- File scaffolding creates the necessary
main.tf,variables.tf,outputs.tf,versions.tf, andREADME.mdfiles. - Coding alignment applies block ordering, variable validation blocks, and
nullable = falseconstraints. - Validation and Review runs a pre-commit checklist including
fmt,validate, and security checks like Checkov or TFLint.
Why this beats prompting it yourself
Generic prompts often produce flat file structures or omit critical version pinning. This skill enforces a specific promotion workflow and state management strategy that prevents configuration drift across environments. It specifically handles complex Terraform logic like for_each collections and terraform_remote_state reads which basic prompts often hallucinate.
Use cases
- Build new modules following a standardized file layout and naming schema.
- Refactor legacy code by splitting monolithic files into resource and infrastructure modules.
- Perform PR reviews to catch violations in block ordering or missing variable descriptions.
- Setup environments by configuring remote backends and environment-specific
tfvars.jsonfiles.
Known limitations
Requires a specific directory structure starting at infra/. Does not support HCL secrets; requires AWS Secrets Manager or Parameter Store for sensitive data.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.
Requires a directory structure rooted at infra/. Targets AWS provider. Assumes use of remote backends for compositions.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
Permissions
What's inside
Creator
Claudio M