PromptsVault AI is thinking...
Searching the best prompts from our community
Searching the best prompts from our community
Prompts matching the #aws tag
Design scalable serverless architecture on AWS. Components: 1. API Gateway for request routing and throttling. 2. AWS Lambda for business logic execution. 3. Amazon DynamoDB for NoSQL data storage. 4. Amazon Cognito for user authentication. 5. AWS Step Functions for workflow orchestration. 6. Amazon SQS/SNS for event-driven messaging. 7. CloudWatch for monitoring and logging. 8. CI/CD with AWS CodePipeline. Include cost estimation and disaster recovery strategy.
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.
Conduct cloud infrastructure cost optimization. Analysis areas: 1. Right-sizing over-provisioned instances. 2. Reserved instances and savings plans. 3. Spot instances for non-critical workloads. 4. Unused resources (idle instances, unattached volumes). 5. Data transfer costs optimization. 6. Storage lifecycle policies. 7. Auto-scaling policies review. Use tools like AWS Cost Explorer, CloudHealth. Provide recommendations with estimated savings. Implement FinOps practices with cost allocation tags and budgets. Target 20-40% cost reduction.
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.
Implement Infrastructure as Code using Terraform for scalable, repeatable infrastructure provisioning. Terraform best practices: 1. Module structure: reusable components, input variables, output values, documentation. 2. State management: remote backends (S3 + DynamoDB), state locking, team collaboration. 3. Version control: semantic versioning for modules, branch protection, code reviews. 4. Testing: terraform plan validation, terratest for integration testing. Multi-environment strategy: 1. Workspace separation: dev, staging, production with environment-specific variables. 2. Configuration management: tfvars files, environment variable injection. 3. Deployment pipeline: automated testing, approval workflows, drift detection. Resource provisioning: 1. Cloud provider modules: AWS VPC, EC2, RDS with appropriate sizing and security groups. 2. Networking: subnets, route tables, NAT gateways, VPN connections. 3. Security: IAM roles, security groups, encryption at rest/transit. Cost optimization: 1. Resource tagging: cost allocation, environment identification, automated cleanup. 2. Right-sizing: instance types based on performance requirements, reserved instances for predictable workloads. Security scanning: Checkov, tfsec for policy compliance, secret detection, vulnerability assessment. Documentation: README files, module documentation, architecture diagrams.