Skip to content

Instantly share code, notes, and snippets.

View elordahl's full-sized avatar
💭
🥋

Eric Lordahl elordahl

💭
🥋
View GitHub Profile
@elordahl
elordahl / get-session-token.sh
Last active December 4, 2019 19:02
Simple script that will use your MFA token to set AWS credentials
#!/bin/bash -e
# $1 = token from your authenticator
#
# usage:
# ./get-session-token.sh 123456
#
# the profile name with your credentials
PROFILE=""
@elordahl
elordahl / debug.log
Last active May 13, 2019 17:42
aws_route53_health_check error when switching back to recommended regions
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
~ module.cluster.module.route53.aws_route53_health_check.status
regions.#: "3" => "0"
regions.1441947086: "us-west-2" => ""
regions.2003110180: "us-east-1" => ""
@elordahl
elordahl / win_update.yml
Last active November 17, 2023 16:35
Ansible playbook to run Windows Update and restart, if required
---
# Ansible playbook to run Windows Update and restart, if required
#
# http://docs.ansible.com/ansible/win_updates_module.html
# https://docs.ansible.com/ansible/win_reboot_module.html
- name: Windows Update
hosts: all
gather_facts: false
tasks: