Skip to content

Instantly share code, notes, and snippets.

View aatchison's full-sized avatar

Arron Atchison aatchison

View GitHub Profile
@Sancus
Sancus / awsauth.sh
Last active July 17, 2025 18:02
AWS Boto/CLI MFA Authentication
#!/bin/bash
# https://us-east-1.console.aws.amazon.com/iam/home?region=us-east-1#/security_credentials
# Get your MFA ARN from the URL above.
MFA_ARN="arn:aws:iam::<yoursgoeshere>"
DURATION=129600 # 36 hours
# Prompt for MFA code
read -p "Enter MFA code: " MFA_CODE
@leucos
leucos / do_boot2.sh
Last active December 26, 2023 17:54
Bootstrap your DO infrastructure unsing Ansible without dynamic inventory (version for Ansible v2.0+ and DO API v2.0)
#!/bin/bash
#
# What is that
# ============
#
# This script will help you setting up your digital ocean
# infrastructure with Ansible v2.0+ and DO API v2
#
# Usually, when working with DO, one is supposed to use digital_ocean.py
# inventory file, and spin up instances in a playbook.