Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#Terraform

Advanced AI Prompt for GitHub Actions Terraform State Automation Pipeline

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-github-actions-terraform-state-automation.txt
Act as a Lead DevOps Automation Engineer. Create a highly secure, production-ready GitHub Actions YAML workflow for the infrastructure repository [GITHUB_REPO]. The pipeline must adhere to strict sequential stages: 1) Initialize the runner with [TERRAFORM_VERSION] using `hashicorp/setup-terraform`. 2) Authenticate to AWS securely leveraging OIDC (bypassing the outdated [AWS_CREDENTIALS_SECRET] long-lived keys). 3) Execute `terraform init` and `terraform fmt -check`. 4) Execute `terraform plan` and utilize a script to inject the formatted plan output directly as a Pull Request comment. 5) Implement a protected `terraform apply` job that triggers *only* on a merged push to the `main` branch, protected by an explicit GitHub Environments manual approval gate. Ensure state locking is enforced throughout the entire run.

Expected Visual Output

Expected visual output for Advanced AI Prompt for GitHub Actions Terraform State Automation Pipeline

Example Text Output

"The AI would generate a YAML file for GitHub Actions that includes steps for setup"

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for GitHub Actions Terraform State Automation Pipeline" prompt used for?

The AI would generate a YAML file for GitHub Actions that includes steps for setup

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.