Set up Terraform CI/CD
Automate Terraform deployments
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Set up a CI/CD pipeline for Terraform code in [GitHub/GitLab]. Include: terraform fmt and validate checks, tfsec security scanning, cost estimation with Infracost, plan output as PR comment, automated apply on merge to main (with manual approval for production), and state lock handling.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Astuce : séparez les pipelines par environnement (dev/staging/prod) avec des runners dédiés. Pour les plans dans les commentaires de merge request, générez un résumé des changements (ressources ajoutées/modifiées/supprimées) au lieu du plan brut pour éviter les limites de caractères et améliorer la lisibilité.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
GitHub Copilot Prompt to Generate a Database Schema
GitHub Copilot radically transforms how developers design their databases. Instead of starting from a blank sheet and manually writing each CREATE TABLE statement, you can now describe your business domain in natural language and get a complete schema in seconds. The tool excels particularly in generating relational schemas with appropriate primary keys, foreign keys, indexes, and constraints. Whether you work with PostgreSQL, MySQL, SQLite, or SQL Server, Copilot adapts the syntax and data types to the targeted SQL dialect. This approach significantly accelerates the modeling phase, reduces syntax errors, and allows you to focus on business logic rather than SQL mechanics. A well-crafted prompt is key: by specifying the application context, entity relationships, and business constraints, you get a production-ready schema that follows best practices for normalization and performance.
Implement OWASP security headers
Add security headers
Implement secrets management
Secure credentials management
Multi-Level Testing Pipeline
Structuring tests in the pipeline