Skip to content

Instantly share code, notes, and snippets.

View hassaku63's full-sized avatar

Takuya Hashimoto hassaku63

View GitHub Profile
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1444892806511",
"Action": [
"autoscaling:UpdateAutoScalingGroup"
],
"Effect": "Allow",
"Resource": "*"
import boto3
autoscaling = boto3.client("autoscaling")
#org_param = dict(MinSize=2, DesiredCapacity=2) # 復元先のパラメータ
stop_param = dict(MinSize=0, DesiredCapacity=0) # 擬似Stopする時のパラメータ
def lambda_handler(event, context):
"""
cron triggered function