Skip to content
StackPractices

Tag: automation

Browse 47 practical software engineering resources tagged with "automation". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving automation.

Schedule Periodic Tasks in Python with APScheduler

Run cron-like jobs in Python using APScheduler. Covers interval, cron, and date triggers, job stores, and background scheduling.

Ansible Playbook for Server Configuration

How to write and run Ansible playbooks for provisioning, configuring, and managing servers with idempotent tasks, roles, and inventory files.

Deploy Containers to AWS ECS with Fargate

How to deploy Docker containers to AWS ECS using Fargate serverless compute with Terraform and GitHub Actions

Background Jobs

How to schedule and run background jobs using cron, task queues, and workers.

AWS CLI Automation with Bash

Automate AWS resource provisioning with bash and AWS CLI

Backup Rotation Script in Bash

Automated backup with retention policies using bash and find.

Monitor Disk Usage with Bash

Alert when disk space crosses thresholds with bash scripts

Log Rotation and Compression in Bash

Rotate and compress application logs automatically with bash scripts

Bash Scripting for DevOps Automation and System Tasks

How to write reliable Bash scripts for automating deployments, system monitoring, log rotation, and routine maintenance tasks

CI/CD Pipeline Setup

Set up automated CI/CD pipelines for testing, building, and deploying applications with GitHub Actions and what works.

CLI Tool with Argument Parsing

How to build a professional command-line interface with argument parsing, flags, and subcommands.

Cron Jobs

How to schedule and manage recurring tasks using cron syntax across Linux, Python, and Node.js.

Docker Basics

How to containerize an application, write a Dockerfile, and run containers with Docker Compose.

Local Microservices Development with Docker Compose

Orchestrate multi-service local environments with Docker Compose including databases, caches, message brokers, and reverse proxies with hot reload and shared networks

Environment Variables

How to read, set, and manage environment variables securely across Python, JavaScript, and Java.

Feature Flags

How to implement feature toggles to safely roll out, test, and rollback functionality without deploying code.

Generate Sitemaps Live

How to build and serve live XML sitemaps from your application data, with multi-language support, pagination, and automatic lastmod dates.

Git Workflow

A practical branching strategy for teams: feature branches, pull requests, and clean commit history.

GitHub Actions CI/CD

How to build and deploy with GitHub Actions using workflows, matrices, caching, and secrets.

Share Workflow Logic with GitHub Actions Reusable Workflows

How to create and consume reusable workflows in GitHub Actions, covering inputs, secrets, conditional jobs, matrix strategy, and organization-wide sharing.

Implement Graceful Shutdown and Zero-Downtime Restarts

How to implement graceful shutdown and zero-downtime restarts for web servers, workers, and containers

Observability Dashboards with Grafana and Prometheus

Build interactive Grafana dashboards that visualize Prometheus metrics with panels, variables, and alerts for thorough service observability

Health Check Endpoint

How to implement a production-ready health check endpoint for monitoring and load balancers.

Deploy Applications to Kubernetes with Helm Charts

Package, version, and deploy Kubernetes applications using Helm charts with value overrides, template functions, and release management for reproducible infrastructure

Immutable Infrastructure

Build immutable infrastructure with versioned machine images and containers to eliminate configuration drift and ensure reproducible deployments.

Parse and Validate YAML/JSON Configuration

How to parse and validate application configuration files using YAML and JSON schemas.

Set Up Pre-Commit Hooks

How to set up pre-commit hooks with husky, lint-staged, and pre-commit to enforce code quality before commits

Retry Logic with Exponential Backoff

How to implement resilient retry logic with exponential backoff and jitter for transient failures in network and API calls.

Manage Application Secrets Securely

How to store, rotate, and inject API keys, database passwords, and certificates without hardcoding them in source code or environment files.

Setup CI with GitLab Pipelines

How to configure GitLab CI/CD pipelines for testing, building, and deploying applications using .gitlab-ci.yml with stages, jobs, caching, and runners.

AWS CLI Automation with Bash

Automate AWS resource provisioning, tagging, and cleanup using Bash scripts wrapped around the AWS CLI.

Backup Rotation Script

Automate file backups with retention policies using a Bash script that rotates daily, weekly, and monthly snapshots.

SSH Key Management

Generate, rotate, and distribute SSH keys securely with Bash scripts for team and server access.

SSH Key Management in Bash

Generate, rotate, and distribute SSH keys with bash scripts

API Mocking for Testing

Build reliable tests by mocking external APIs with WireMock, MockServer, and MSW to eliminate flakiness and test edge cases.

CI/CD Pipeline Design Template

A template for documenting CI/CD pipeline stages, gates, environments, deployment strategies, rollback procedures, and security scanning.

SSL Certificate Management Template

A template for tracking TLS/SSL certificate inventory, renewals, deployments, and expiration risks across domains and services.

Bug Report Template

A structured bug report template to help teams reproduce, triage, and resolve defects faster with clear reproduction steps and expected behavior.

Code of Conduct Template

A community code of conduct template to establish inclusive, respectful collaboration standards.

Disaster Recovery Plan Template

A disaster recovery plan template for documenting RTO/RPO targets, failover procedures, and recovery runbooks that minimize downtime during catastrophic failures.

Environment Setup Guide Template

A template for documenting how to set up local development, staging, and production environments consistently and reproducibly.

Onboarding Guide Template

A thorough onboarding guide template to help new team members get productive quickly.

Post-Deployment Verification Checklist Template

A checklist template for verifying deployments: health checks, smoke tests, metric validation, and rollback readiness before declaring all-clear.

Code Reviews: Reviewer Mindset, Feedback, Automation

Master code review best practices: reviewer mindset, constructive feedback, review checklists, automated checks, PR sizing, and building a strong review culture in engineering teams.

CI/CD Pipeline Guide

A practical guide to building CI/CD pipelines with GitHub Actions, testing, deployment strategies, and rollback procedures.

Complete Guide to CI/CD with GitHub Actions

Build CI/CD pipelines from scratch with GitHub Actions. Covers workflows, runners, matrix builds, caching, secrets, environments, deployment strategies, and reusable workflows.

GitHub Actions CI/CD: Workflows, Runners, Secrets

Master GitHub Actions for CI/CD: workflows, reusable workflows, composite actions, secrets management, runners, matrix builds, caching, and deployment patterns.