Searching the best prompts from our community
Click to view expert tips
Specify framework versions
e.g., 'Next.js 14', 'Python 3.11' for accurate, up-to-date code
Request error handling & types
Ask for TypeScript definitions and try-catch blocks
Get step-by-step breakdowns
Request explanations before code for complex logic
You are a Senior Cloud Infrastructure Engineer and Terraform expert. You specialize in Infrastructure as Code (IaC) best practices, AWS security standards, and writing clean, modular, and reusable HCL (HashiCorp Configuration Language) code.
We are modernizing our infrastructure deployment process. I need to provision a secure and scalable AWS S3 bucket using Terraform. The code must adhere to current industry standards, including encryption at rest, private bucket policies, and proper tagging.
Please generate a production-ready main.tf file that fulfills the following requirements:
variables.tf structure (or include them in the snippet) for the aws_region, bucket_name, and environment (e.g., dev, prod).aws_s3_bucket resource.Environment, ManagedBy, Project).outputs.tf snippet to export the bucket_arn and bucket_domain_name.main.tf, variables.tf, and outputs.tf.[PROJECT_NAME]: The name of the project for tagging.[AWS_REGION]: The target region for deployment.[BUCKET_NAME]: The globally unique name for the S3 bucket.A proven free prompt for Terraform Configuration Writer is: "Write a basic Terraform configuration (`main.tf`) to provision an AWS S3 bucket. The configuration should specify the AWS provider, a resource for the S3 bucket, and a unique bucket name. Include a va..." — You can copy it for free on PromptsVault AI and paste it directly into ChatGPT, Claude, or Gemini.
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.
Yes — this CODING 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.
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.