This file contains 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
'use strict'; | |
const AWS = require('aws-sdk'); | |
const funcName = <FUNCTION_NAME>; | |
const interval = 10000; // 10sec | |
function inveokeLambda(funcName) { | |
const lambda = new AWS.Lambda({ | |
apiVersion: '2015-03-31' |
This file contains 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/bash | |
API_KEY="<Your API KEY>" | |
SERVICE_NAME="<Your service name>" | |
METRIC="<Your metric name>" | |
FROM="2018-10-01 00:00" | |
TO="2018-10-05 00:00" | |
FROM_EPOCH=`date +%s --date "${FROM}"` | |
TO_EPOCH=`date +%s --date "${TO}"` |
This file contains 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/bash | |
CMDNAME=`basename $0` | |
if [ $# -gt 1 ]; then | |
echo "Usage: ${CMDNAME} [profile]" 1>&2 | |
exit 1 | |
fi | |
# 第1引数でプロファイル名が指定されていたら上書きする | |
PROFILE="default" |
This file contains 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", | |
"NotAction": [ | |
"organizations:*", | |
"sso:*", | |
"sso-directory:*" | |
], |