Skip to main content
coding intermediate

Generate Environment Configuration Files

Generate production-ready environment configuration files for any application stack. Perfect for DevOps automation and deployment setup.

Works with: chatgptclaudegemini

Prompt Template

You are an expert DevOps engineer tasked with creating environment configuration files. Generate comprehensive configuration files for [APPLICATION_TYPE] running in [ENVIRONMENT_STAGE]. Application Details: - Technology stack: [TECH_STACK] - Deployment platform: [DEPLOYMENT_PLATFORM] - Required services: [REQUIRED_SERVICES] - Security requirements: [SECURITY_LEVEL] Generate the following configuration files: 1. Environment variables file (.env or equivalent) 2. Docker configuration (if applicable) 3. Infrastructure configuration 4. Service configuration files For each configuration file, include: - Proper commenting and documentation - Security best practices (no hardcoded secrets) - Environment-specific optimizations - Resource allocation settings - Monitoring and logging configuration - Health check endpoints - Backup and recovery settings Ensure configurations follow industry standards and include placeholder values for sensitive data. Add inline comments explaining each section's purpose and provide deployment notes for each file.

Variables to Customize

[APPLICATION_TYPE]

Type of application being deployed

Example: Node.js REST API with Redis cache

[ENVIRONMENT_STAGE]

Deployment environment stage

Example: production

[TECH_STACK]

Technologies and frameworks used

Example: Node.js, Express, PostgreSQL, Redis

[DEPLOYMENT_PLATFORM]

Target deployment platform

Example: Kubernetes on AWS EKS

[REQUIRED_SERVICES]

External services and dependencies

Example: PostgreSQL database, Redis cache, S3 storage, CloudWatch logging

[SECURITY_LEVEL]

Security requirements and compliance needs

Example: HTTPS only, API key authentication, SOC2 compliance

Example Output

## Environment Configuration Files ### 1. Production Environment Variables (.env.production) ```bash # Application Configuration NODE_ENV=production PORT=3000 API_VERSION=v1 # Database Configuration DATABASE_URL=${DATABASE_URL} DB_POOL_MIN=5 DB_POOL_MAX=20 DB_TIMEOUT=30000 # Redis Configuration REDIS_URL=${REDIS_URL} REDIS_TTL=3600 # Security Settings JWT_SECRET=${JWT_SECRET} API_KEY_REQUIRED=true RATE_LIMIT_REQUESTS=100 RATE_LIMIT_WINDOW=900 ``` ### 2. Kubernetes Deployment (k8s-deployment.yaml) ```yaml apiVersion: apps/v1 kind: Deployment metadata: name: nodejs-api spec: replicas: 3 selector: matchLabels: app: nodejs-api template: spec: containers: - name: api image: nodejs-api:latest ports: - containerPort: 3000 resources: requests: memory: "256Mi" cpu: "250m" limits: memory: "512Mi" cpu: "500m" ``` **Deployment Notes:** Use Kubernetes secrets for sensitive variables. Configure horizontal pod autoscaling based on CPU/memory usage.

Pro Tips for Best Results

  • Always use placeholder variables for secrets and sensitive data - never hardcode them in configuration files
  • Include resource limits and health checks to ensure stable deployments and proper scaling
  • Add comprehensive comments explaining each configuration section for team collaboration
  • Specify environment-specific optimizations like connection pools and timeout values
  • Include monitoring and logging configuration to enable proper observability

Tags

Want 500+ Expert Prompts?

Get the Premium Prompt Pack — organized, tested, and ready to use.

Get it for $29

Related Prompts You Might Like