Terraform Infrastructure

Terraform Infrastructure

Gives a coding agent a Terraform skill for modular infrastructure as code, remote state and multi-cloud provisioning, with AWS module, variables and validation references.

Skill files6 files

references/

scripts/

templates/

SKILL.md98 lines
1
---
2
name: terraform-infrastructure
3
description: >
4
Infrastructure as Code using Terraform with modular components, state
5
management, and multi-cloud deployments. Use for provisioning and managing
6
cloud resources.
7
---
8
9
# Terraform Infrastructure
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Build scalable infrastructure as code with Terraform, managing AWS, Azure, GCP, and on-premise resources through declarative configuration, remote state, and automated provisioning.
22
23
## When to Use
24
25
- Cloud infrastructure provisioning
26
- Multi-environment management (dev, staging, prod)
27
- Infrastructure versioning and code review
28
- Cost tracking and resource optimization
29
- Disaster recovery and environment replication
30
- Automated infrastructure testing
31
- Cross-region deployments
32
33
## Quick Start
34
35
Minimal working example:
36
37
```hcl
38
# terraform/main.tf
39
terraform {
40
required_version = ">= 1.0"
41
42
required_providers {
43
aws = {
44
source = "hashicorp/aws"
45
version = "~> 5.0"
46
}
47
}
48
49
# Remote state configuration
50
backend "s3" {
51
bucket = "terraform-state-prod"
52
key = "prod/terraform.tfstate"
53
region = "us-east-1"
54
encrypt = true
55
dynamodb_table = "terraform-locks"
56
}
57
}
58
59
provider "aws" {
60
region = var.aws_region
61
62
default_tags {
63
// ... (see reference guides for full implementation)
64
```
65
66
## Reference Guides
67
68
Detailed implementations in the `references/` directory:
69
70
| Guide | Contents |
71
|---|---|
72
| [AWS Infrastructure Module](references/aws-infrastructure-module.md) | AWS Infrastructure Module |
73
| [Variables and Outputs](references/variables-and-outputs.md) | Variables and Outputs |
74
| [Terraform Deployment Script](references/terraform-deployment-script.md) | Terraform Deployment Script |
75
76
## Best Practices
77
78
### ✅ DO
79
80
- Use remote state (S3, Terraform Cloud)
81
- Implement state locking (DynamoDB)
82
- Organize code into modules
83
- Use workspaces for environments
84
- Apply tags consistently
85
- Use variables for flexibility
86
- Implement code review before apply
87
- Keep sensitive data in separate variable files
88
89
### ❌ DON'T
90
91
- Store state files locally in git
92
- Use hardcoded values
93
- Mix environments in single state
94
- Skip terraform plan review
95
- Use root module for everything
96
- Store secrets in code
97
- Disable state locking
98

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…