
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
[AWS] RDSの自動停止・自動起動の仕組みを作ってみた - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
[AWS] RDSの自動停止・自動起動の仕組みを作ってみた - Qiita
import boto3 region = 'ap-northeast-1' rds = boto3.client('rds', region_name=region) def lambda_h... import boto3 region = 'ap-northeast-1' rds = boto3.client('rds', region_name=region) def lambda_handler(event, context): #Start DB Instances dbs = rds.describe_db_instances() for db in dbs['DBInstances']: #Check if DB instance stopped. Start it if eligible. if (db['DBInstanceStatus'] == 'stopped'): try: result = rds.start_db_instance(DBInstanceIdentifier=db['DBInstanceIdentifier']) print ("Startin