{"id":1912,"date":"2015-11-19T00:00:50","date_gmt":"2015-11-18T15:00:50","guid":{"rendered":"http:\/\/www.magtranetwork.com\/?p=1912"},"modified":"2017-04-05T16:09:57","modified_gmt":"2017-04-05T07:09:57","slug":"aws_lambda_python_start_stop_instances_tags_schedule_manage","status":"publish","type":"post","link":"https:\/\/www.magtranetwork.com\/aws\/aws_lambda_python_start_stop_instances_tags_schedule_manage.html","title":{"rendered":"AWS Lambda Python\u3067\u8907\u6570AWS\u30a2\u30ab\u30a6\u30f3\u30c8\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8d77\u52d5(Start)\u3001\u505c\u6b62(Stop)\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u5b9f\u884c\u30fb\u7ba1\u7406\u3059\u308bPython\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0) \u301c\u30bf\u30b0\u306e\u5024\u306b\u8d77\u52d5\u6642\u9593\u30fb\u505c\u6b62\u6642\u9593\u3092\u6307\u5b9a\u3001\u571f\u65e5\u795d\u65e5\u3092\u8003\u616e\u301c"},"content":{"rendered":"

AWS Lambda Python\u3001Amazon API Gateway\u304c\u767b\u5834\u3057\u305f\u73fe\u5728\u3001\u4eca\u5f8c\u3092\u8003\u3048\u308b\u3068EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5f79\u5272\u306f\u6b21\u7b2c\u306b\u5c11\u306a\u304f\u306a\u3063\u3066\u3044\u304f\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002
\n\u305f\u3060\u3001\u4e00\u65b9\u3067AWS Lambda\u3067\u306f\u9577\u6642\u9593\u306e\u30b5\u30fc\u30d3\u30b9\u5b9f\u884c\u3084\u81ea\u7531\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u69cb\u7bc9\u306a\u3069\u3001\u305d\u306e\u4ed5\u69d8\u4e0a\u5b9f\u73fe\u3067\u304d\u306a\u3044\u3053\u3068\u3082\u6570\u591a\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u3053\u306e\u3088\u3046\u306a\u72b6\u6cc1\u306b\u304a\u3044\u3066EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u5f79\u5272\u3092\u7279\u5316\u3057\u306a\u304c\u3089\u4eca\u5f8c\u3082\u5fc5\u8981\u6027\u3092\u7dad\u6301\u3057\u3066\u3044\u304f\u3068\u601d\u308f\u308c\u307e\u3059\u304c\u3001\u4eca\u307e\u3067\u3082\u4eca\u5f8c\u3082\u5ea6\u3005\u8ab2\u984c\u3068\u3057\u3066\u6319\u3052\u3089\u308c\u308b\u306e\u304cEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u6599\u91d1\u3067\u3059\u3002
\nEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u6599\u91d1\u306f\u8d77\u52d5\u3055\u305b\u7d9a\u3051\u308b\u3068AWS\u30b5\u30fc\u30d3\u30b9\u306e\u4e2d\u3067\u3082\u6bd4\u8f03\u7684\u591a\u304f\u306a\u308b\u50be\u5411\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u305d\u306e\u305f\u3081\u3001EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5229\u7528\u306f\u5fc5\u8981\u306a\u6642\u9593\u306b\u5fc5\u8981\u306a\u3060\u3051\u8d77\u52d5\u3057\u3066\u30e9\u30f3\u30cb\u30f3\u30b0\u30b3\u30b9\u30c8\u3092\u5c11\u306a\u304f\u6291\u3048\u305f\u3044\u3082\u306e\u3067\u3059\u3002
\nEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u6599\u91d1\u3092\u4f4e\u304f\u6291\u3048\u308b\u305f\u3081\u306b\u306fEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8d77\u52d5(Start)\u3001\u505c\u6b62(Stop)\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u5b9f\u884c\u30fb\u7ba1\u7406\u3059\u308bPython\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u306b\u306f\u884c\u308f\u308c\u3066\u3044\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n

\u4eca\u56de\u306f\u4ee5\u524d\u300c\u65e5\u672c\u306e\u795d\u65e5\u3092\u53d6\u5f97\u3059\u308bPython\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)(\u300c\u5c71\u306e\u65e5\u300d\u5bfe\u5fdc) \u2013 \u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb(ICS\u30d5\u30a1\u30a4\u30eb)\u3067\u795d\u65e5\u306e\u53d6\u5f97 \u301c2015\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012016\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012017\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012018\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012019\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012020\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u301c<\/a>\u300d\u3067\u8a18\u8f09\u3057\u305f\u795d\u65e5\u3092\u7fd2\u5f97\u3059\u308bPython\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306e\u5185\u5bb9\u3082\u5fdc\u7528\u3057\u3066\u3001AWS Lambda Python\u3067\u8907\u6570AWS\u30a2\u30ab\u30a6\u30f3\u30c8\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8d77\u52d5(Start)\u3001\u505c\u6b62(Stop)\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u5b9f\u884c\u30fb\u7ba1\u7406\u3059\u308bPython\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n

\u3053\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306e\u5927\u307e\u304b\u306a\u51e6\u7406\u306e\u6d41\u308c\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n