This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Sid": "EC2FullAccess", | |
"Action": [ | |
"ec2:*" | |
], | |
"Resource": "*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# スナップショット一覧から AMI と紐付いていないスナップショットの ID を取得する | |
# | |
set -e | |
# Set environment | |
SNAPSHOT_LIST="snapshots.list" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AWS = require('aws-sdk'); | |
AWS.config.region = 'us-west-2'; | |
const ec2 = new AWS.EC2(); | |
var webhook = '<Slack WebHook URL>'; | |
exports.handler = function(event, context) { | |
console.log('Start'); |
OlderNewer