Skip to content

Instantly share code, notes, and snippets.

View yumminhuang's full-sized avatar

Huang Yaming yumminhuang

View GitHub Profile
@yumminhuang
yumminhuang / EC2Backup.py
Created June 18, 2020 04:13
Create snapshots for EBS volumes to backup EC2 instances
#!/usr/bin/env python3
# coding: utf-8
"""
EC2Backup
A tool for encrypting EC2 volumes
Inspried by https://github.com/jbrt/ec2cryptomatic
"""
import argparse
@yumminhuang
yumminhuang / iam_password_policy.yml
Last active October 20, 2022 12:09
Setting Password Policies to Follow CIS Benchmark via CloudFormation
---
AWSTemplateFormatVersion: '2010-09-09'
Description:
This CloudFormation stack sets an IAM Password Policy for an account. It uses
a custom resource to manage the policy. Note that IAM password policies are
global, and this will apply to all regions--not just the region you create
the stack in.
Parameters:
# CIS Benchmark Check 1.5
RequireUppercaseChars: