Skip to content

Instantly share code, notes, and snippets.

@webtech-yone
webtech-yone / aws-scripts-mon.spec
Last active July 26, 2017 04:54
RPM spec file: Amazon CloudWatch Monitoring Scripts for Linux
Summary: Amazon CloudWatch Monitoring Scripts for Linux
Name: aws-scripts-mon
Version: 1.2.1
Release: 1w1%{dist}
License: ASL 2.0
Group: Applications/System
URL: http://aws.amazon.com/code/8720044071969977
Source: http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-%{version}.zip
Patch: mon-put-instance-data.inode.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@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": [