Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- .woodpecker.yaml: image paths -> library/autojanet-{agent,dispatcher}
- .woodpecker.yaml: secret names RS_HARBOR_USER / RS_HARBOR_PASS (global)
- container/Dockerfile: restore COPY skills/, skills/ populated from opencode config
- skills/: 84 opencode skills bundled into image
- k8s/manifests: update image refs to library/
2.1 KiB
2.1 KiB
Terraform Language Prompt Snippet
Key Concepts
- Declarative Infrastructure: Define desired state; Terraform computes and applies the diff
- Providers: Plugins connecting to cloud APIs (AWS, GCP, Azure, Kubernetes, etc.)
- Resources:
resource "type" "name"blocks declaring infrastructure components - Data Sources:
data "type" "name"blocks reading existing infrastructure state - Variables:
variableblocks for parameterizing configurations with defaults and validation - Outputs:
outputblocks exposing values for cross-module references or human consumption - Modules: Reusable, composable infrastructure packages with their own variables and outputs
- State Management:
.tfstatefiles tracking real-world resource mapping (never commit to git) - Workspaces: Isolated state environments for managing dev/staging/prod from one codebase
- Plan and Apply:
terraform planpreviews changes,terraform applyexecutes them
Notable File Patterns
main.tf— Primary resource definitionsvariables.tf— Input variable declarations with types and defaultsoutputs.tf— Output value definitionsproviders.tf— Provider configuration and version constraintsbackend.tf— Remote state backend configuration (S3, GCS, etc.)modules/**/*.tf— Reusable infrastructure modules*.tfvars— Variable value files for different environmentsterraform.lock.hcl— Provider version lock file
Edge Patterns
- Terraform files
provisionsthe infrastructure resources they define - Module references create
depends_onedges between terraform files - Terraform
deploysapplication code by referencing container images or deployment targets - Variable files
configuresthe terraform modules they parameterize
Summary Style
"Terraform configuration provisioning N AWS resources including VPC, ECS cluster, and RDS instance." "Infrastructure module defining a reusable Kubernetes namespace with RBAC and network policies." "Variable definitions for N environment-specific settings (region, instance type, scaling)."