• Browse Prompts
  • Trending
  • Saved Prompts
  • Web Dev
  • Marketing
  • Blog
  • Submit Your Prompt
PromptsVault AI LogoPromptsVault AI
  • Browse
  • Trending
  • Blog
  • Saved
  • Submit Your Prompt
PromptsVault AI LogoPromptsVault AI

The world's best AI prompts library. Hand-curated, high-quality prompts for ChatGPT, Claude, and Midjourney. Built for productivity and high-accuracy results.

Categories

  • Web Dev
  • AI/ML
  • Marketing
  • Coding
  • Creative
  • View All →

Popular Topics

  • chatgpt
  • midjourney
  • marketing
  • coding
  • seo
  • writing
  • social media
  • email

Legal

  • About Us
  • AI Blog
  • Privacy
  • Terms
  • Disclaimer

© 2026 PromptsVault AI. All rights reserved.

PromptsVault AI is thinking...

Searching the best prompts from our community

ChatGPTMidjourneyClaude
  1. Home
  2. Library
  3. DEVOPS
  4. Reusable Terraform module for multi-cloud deployment
DEVOPS
47 views
AI Prompt for

Reusable Terraform module for multi-cloud deployment

💡 USAGE TIPS
Optional - Click to learn how to use this prompt effectively

⚡ Quick Start Guide

Click to view expert tips

Copy to your AI tool

Works with ChatGPT, Claude, Gemini, and more

Fill in placeholders

Replace [brackets] with your specific details

Iterate for perfection

Refine based on output - AI gets better with feedback

Pro tip: The more context you provide, the better your results!
ACTUAL PROMPT BELOW
PROMPT
Copy & Use FREE

🎭 Role

You are a Senior Cloud Infrastructure Engineer and DevOps Architect with deep expertise in multi-cloud abstraction, modular Terraform design, and "Infrastructure as Code" (IaC) best practices. Your goal is to engineer production-ready, highly reusable, and secure infrastructure components.

🌐 Context

The organization needs to standardize infrastructure provisioning across AWS and Azure to minimize operational drift and accelerate time-to-market. You are tasked with architecting a foundational, provider-agnostic Terraform module structure that handles the nuances of both AWS and Azure while maintaining a unified interface for developers.

🛠️ Task Instruction

Design a comprehensive, reusable Terraform module structure that satisfies the following architectural requirements:

  1. Modular Architecture: Implement a root module that utilizes conditional logic (using count or for_each) to toggle resource creation based on the selected cloud provider (var.cloud_provider).
  2. Core Components:
    • Networking: Define VPC (AWS) and VNet (Azure) modules with subnets and routing.
    • Security: Implement Security Groups (AWS) and Network Security Groups (Azure) with customizable ingress/egress rules.
    • Compute/LB: Provision virtual machines/instances and associated Load Balancers based on provided instance types and regions.
  3. State Management: Define a strategy for remote state backends (S3/DynamoDB for AWS; Blob Storage/Table for Azure) using dynamic configuration blocks.
  4. Abstraction: Use variables to expose key configurations (e.g., instance_size, region, environment, cidr_blocks) while maintaining sensible defaults.
  5. Output & Validation:
    • Generate standardized output values for connection strings and resource IDs.
    • Provide a suite of Terratest scripts to validate infrastructure deployment and connectivity.
  6. Documentation: Include a README.md formatted with standard Terraform documentation tables for Input Variables, Outputs, and Provider requirements.

⚖️ Constraints & Tone

  • Tone: Professional, technical, and precise.
  • Constraints:
    • Adhere to DRY (Don't Repeat Yourself) principles.
    • Prioritize modularity over monolithic code.
    • Ensure all code includes comments explaining the "why" behind design decisions.
    • Avoid hardcoded values; utilize variable files and tfvars templates.
  • Avoid: Do not include unnecessary boilerplate or generic explanations. Focus strictly on clean, production-grade HCL.

📝 Output Format

  1. Directory Structure: A visual tree representation of the module organization.
  2. Implementation Code: HCL code blocks for main.tf, variables.tf, and outputs.tf with the requested conditional logic.
  3. Terratest Code: A Go-based test file demonstrating validation logic.
  4. Documentation: A Markdown-formatted table for variables and outputs.

[VARIABLES]

  • [CLOUD_PROVIDERS]: (e.g., AWS, Azure)
  • [PROJECT_NAME]: (e.g., Global-Web-App)
  • [ENVIRONMENT_TAGS]: (e.g., dev, staging, prod)
  • [TARGET_REGIONS]: (e.g., us-east-1, eastus)
Pro Tip: This prompt is engineered to favor SEO-best practices, helping you generate high-ranking, authoritative content that satisfies user intent.
Disclaimer: AI models can hallucinate. Please verify this prompt's output before use. PromptsVault AI is not responsible for AI-generated content.

About This Prompt

What is a good ChatGPT prompt for Reusable Terraform module for multi-cloud deployment?

A proven free prompt for Reusable Terraform module for multi-cloud deployment is: "Create reusable Terraform module for multi-cloud deployment (AWS/Azure). Features: 1. Networking layer (VPC/VNet). 2. Variables for customization (instance types, regions). 3. State management with re..." — You can copy it for free on PromptsVault AI and paste it directly into ChatGPT, Claude, or Gemini.

How do I use this DEVOPS AI prompt for Reusable Terraform module for multi-cloud deployment?

Click the 'Copy Prompt' button at the top of the page, then paste the text into ChatGPT, Claude, Gemini, or any AI model. You can customize any variables in [brackets] to fit your specific needs before submitting.

Is the Reusable Terraform module for multi-cloud deployment prompt free to use?

Yes — this DEVOPS AI prompt is 100% free on PromptsVault AI. No sign-up or payment required. You can copy and use it for personal or commercial projects with no attribution needed.

Which AI tools work best with this Reusable Terraform module for multi-cloud deployment prompt?

This prompt works with all major AI tools — ChatGPT (GPT-4o), Claude 3 (Anthropic), Google Gemini, Grok (xAI), Microsoft Copilot, Perplexity, Mistral, and Llama. The prompt is written in plain language so it's compatible with any large language model.

Related Tags

#devops#terraform#cloud#automation

Advertisement

Join the Community

Submit your prompts and join our elite community of creators!

Submit Now

Related Prompts

D

Serverless microservices architecture on AWS

DEVOPS

D

Penetration testing execution plan and reporting

DEVOPS

D

Production-grade CI/CD pipeline with GitHub Actions

DEVOPS

D

GitOps with ArgoCD deployment

DEVOPS