Skip to content

Instantly share code, notes, and snippets.

@webtech-yone
webtech-yone / ec2snapshot.sh
Last active July 9, 2018 05:54 — forked from wokamoto/create-snapshot.sh
AWS EC2: create a snapshot of my EBS volume.
#!/bin/bash
#
# AWS EC2: create a snapshot of my EBS volume.
# Requires: AWS CLI, curl, jq
# Limitation: only 1 EBS volume attachement
# IAM Role: Attach AmazonEC2CreateSnapshots custom policy.
# AmazonEC2CreateSnapshots
# {
# "Version": "2012-10-17",
# "Statement": [