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”
6 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.
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.