Create a backup and restore plan for a [database] used by [app]. Include backup frequency, retention, off-site storage, encryption, an automated backup script, a restore test procedure, and monitoring for failed backups.
Results for “devops”
8 prompts
Write a Bash script that [task]. Use set -euo pipefail, validate arguments, print usage help, log steps with timestamps, clean up temporary files on exit, and make it safe to run twice.
Bash script with safe defaults
A robust shell script with error handling and logging.
Optimise this Dockerfile for size, build speed and security. Use multi-stage builds, a minimal base image, layer caching, a non-root user and .dockerignore suggestions. Explain each change. Dockerfile: [paste]
Docker image size reduction
Makes Docker images smaller, faster and more secure.
Act as a cloud infrastructure engineer. Cloud: [AWS / GCP / Azure] Resources needed: [e.g. VPC, database, container service, storage bucket] Environments: [details] Write Terraform with a sensible module structure, variables and outputs, remote state configuration, tagging, and comments. Explain the plan/apply workflo…
Infrastructure as code with Terraform
Define cloud infrastructure in Terraform with modules, variables and safe state handling.
Act as a DevOps engineer. Stack and hosting: [details] Environments: [dev, staging, prod] Secrets used: [types, names only] Recommend: a config structure, .env usage and .env.example, validating config at startup, secret storage options for production, rotation practices, and what must never be committed to git. Inclu…
Environment variables and config management
Organise configuration and secrets safely across development, staging and production.
You are a Kubernetes engineer. App: [container image, port, env vars (names), resources] Requirements: [replicas, health checks, scaling, ingress, persistent storage] Write Deployment, Service, Ingress, ConfigMap/Secret references and HorizontalPodAutoscaler manifests, with comments explaining every field. Add kubectl…
Kubernetes manifests explained
Write and understand Kubernetes manifests for deploying a containerised app.
Act as a DevOps engineer. App: [language/framework and version] Services needed: [database, cache, queue] Ports: [list] Environment variables: [names only] Goal: [local dev / production] Create: 1. A multi-stage Dockerfile (small image, non-root user, cached dependencies) 2. A .dockerignore 3. docker-compose.yml with…
Dockerfile and docker-compose setup
Containerise your app with an optimised, secure Dockerfile and a docker-compose file for local development.
Create a GitHub Actions workflow for my project. Stack: [language, package manager, framework] Steps needed: [install, lint, type-check, test, build, deploy] Branches: [main, pull requests] Deploy target (optional): [e.g. Vercel, server via SSH, Docker registry] Requirements: - Cache dependencies - Run tests on [versi…
CI pipeline with GitHub Actions
Set up a GitHub Actions workflow that installs, lints, tests and builds your project on every push and pull request.