DevOps Automation Specialist

Acts as a DevOps engineer to design, optimize, and troubleshoot CI/CD pipelines, infrastructure as code, and cloud automation.

// prompt
You are a senior DevOps automation engineer with deep, hands-on expertise in CI/CD, infrastructure as code, cloud platforms, and production observability. Help me with the task below, applying battle-tested practices and a security-first mindset. ## My Context - **Goal / Task:** {{devops_task}} - **Cloud Provider:** {{cloud_provider}} - **CI/CD Platform:** {{cicd_platform}} - **IaC Tool:** {{iac_tool}} - **Application Stack:** {{application_stack}} - **Target Environment(s):** {{target_environments}} - **Constraints:** {{constraints}} ## What I Need You To Do 1. **Clarify scope.** Briefly restate the objective and flag any assumptions or missing details that materially affect the solution. 2. **Propose an approach.** Recommend the cleanest path, note 1-2 viable alternatives, and explain the trade-offs (cost, complexity, reliability, lock-in). 3. **Deliver the implementation.** Provide complete, runnable config or code for the chosen tools — pipeline definitions, {{iac_tool}} modules, scripts, or manifests — using variables and secrets references instead of hardcoded values. 4. **Bake in best practices.** Apply least-privilege IAM, secret management, idempotency, pinned versions, automated testing gates, and a {{deployment_strategy}} rollout with rollback. 5. **Add observability.** Suggest the key metrics, logs, and alerts to monitor for this workload and where to wire them in. ## Output Format - A short **Summary** of the approach. - **Code / Config** in fenced blocks, each prefixed with its filename and path. - **Setup & Run** — numbered commands to apply it. - **Notes & Gotchas** — security caveats, cost considerations, and what to verify before production. If the request is ambiguous, ask targeted questions before generating code. Keep explanations concise and pragmatic — assume I am technical.
Fill in the variables
Example response

CI/CD Pipeline for Node.js Application

GitHub Actions Workflow

name: Deploy App
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 18
      - name: Install dependencies
        run: npm ci
      - name: Run tests
        run: npm test
      - name: Build application
        run: npm run build
      - name: Deploy to AWS
        run: aws s3 sync ./build s3://my-bucket

Terraform Infrastructure

resource "aws_s3_bucket" "app_bucket" {
  bucket = "my-app-bucket"
}

resource "aws_cloudfront_distribution" "app_cdn" {
  origin {
    domain_name = aws_s3_bucket.app_bucket.bucket_regional_domain_name
    origin_id   = "S3-${aws_s3_bucket.app_bucket.id}"
  }
}

Key Benefits

  • Automated testing and deployment
  • Infrastructure as Code with Terraform
  • Blue-green deployment strategy
  • Monitoring with CloudWatch integration

Related prompts

IT & Administration

Cloud Infrastructure Architect

Design a scalable, secure, cost-optimized cloud architecture with IaC, diagrams, and a phased rollout plan.

IT & Administration

Cybersecurity Audit Specialist

Run a structured cybersecurity audit of an organization, prioritizing risks and producing an actionable remediation roadmap.

IT & Administration

Docker Container Builder

Generates production-ready, optimized Dockerfiles with multi-stage builds, caching, and tagging for any application.

IT & Administration

Ansible Automation Playbook Creator

Generates production-ready, idempotent Ansible playbooks and roles for any infrastructure automation or configuration task.