PromptsVault AI is thinking...
Searching the best prompts from our community
Searching the best prompts from our community
Prompts matching the #iac tag
Provision AWS infrastructure using Terraform. Resources to create: 1. VPC with public and private subnets across 3 AZs. 2. ECS Fargate cluster for containerized apps. 3. RDS PostgreSQL with Multi-AZ and automated backups. 4. Application Load Balancer with SSL certificate. 5. S3 bucket for static assets with CloudFront CDN. 6. IAM roles and security groups with least privilege. Use modules for reusability, remote state in S3, and workspaces for environments. Include cost estimation and tagging strategy.
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 variable for the AWS region.