{"id":2311,"date":"2021-08-16T16:43:52","date_gmt":"2021-08-16T07:43:52","guid":{"rendered":"https:\/\/www.ryucom.co.jp\/blog\/?p=2311"},"modified":"2021-08-16T16:43:55","modified_gmt":"2021-08-16T07:43:55","slug":"post-2311","status":"publish","type":"post","link":"https:\/\/www.ryucom.co.jp\/blog\/iot\/2311","title":{"rendered":"\u30e9\u30ba\u30d1\u30a4\u304b\u3089AWS\u306b\u753b\u50cf\u3092\u8ee2\u9001\u3057\u3066\u901a\u77e5\u3055\u305b\u308b"},"content":{"rendered":"\n
\u3053\u3093\u306b\u3061\u306f\u3002\u5449\u5c4b\u3067\u3059\u3002
\u30e9\u30ba\u30d1\u30a4\u306e\u57fa\u672c\u7684\u306a\u3053\u3068\u304c\u5206\u304b\u3063\u3066\u304d\u305f\u306e\u3067\u3001AWS\u3068\u9023\u643a\u3057\u3066\u8272\u3005\u3084\u3063\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002
\u4eca\u56de\u306f\u30e9\u30ba\u30d1\u30a4\u3067\u64ae\u5f71\u3057\u305f\u753b\u50cf\u3092AWS\u306b\u8ee2\u9001\u3057\u3066\u3001\u901a\u77e5\u3055\u305b\u308b\u3082\u306e\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n
\u30e9\u30ba\u30d1\u30a4\u304b\u3089CLI\u3092\u4f7f\u3063\u3066\u3001S3\u306b\u8ee2\u9001\u3057\u3066\u901a\u77e5\u3059\u308b\u69cb\u6210\u3068\u3057\u307e\u3059\u3002
\u51e6\u7406\u306e\u6d41\u308c\u306f\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n
\u2460\u30e9\u30ba\u30d1\u30a4\u3067\u753b\u50cf\u3092\u64ae\u5f71\u3059\u308b\u3002 \u30b5\u30fc\u30d3\u30b9\u306e\u6982\u8981\u3068\u7528\u9014\u3067\u3059\u3002<\/p>\n\n\n\n \u30fbCLI (AWS Command Line Interface)<\/strong><\/p>\n\n\n\n \u3000\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066 AWS\u3068\u3084\u308a\u53d6\u308a\u3059\u308b\u305f\u3081\u306e\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002 \u30fbS3 (Amazon Simple Storage Service)<\/strong><\/p>\n\n\n\n \u3000\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002 \u30fbSNS\uff08Amazon Simple Notification Service\uff09<\/strong><\/p>\n\n\n\n \u3000E\u30e1\u30fc\u30eb\u30fbSMS\u306a\u3069\u3067\u901a\u77e5\u53ef\u80fd\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002 \u30fbIAM\uff08AWS Identity and Access Management\uff09<\/strong><\/p>\n\n\n\n \u3000\u30b5\u30fc\u30d3\u30b9\u3084\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u7ba1\u7406\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002 \u5404\u30b5\u30fc\u30d3\u30b9\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u3001\u7d44\u307f\u5408\u308f\u305b\u3066\u3044\u304d\u307e\u3059\u3002 \u30e9\u30ba\u30d1\u30a4\u3067\u4f7f\u7528\u3059\u308bIAM\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 \u6b21\u306bIAM\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3001\u5148\u307b\u3069\u4f5c\u3063\u305fIAM\u30dd\u30ea\u30b7\u30fc\u3092\u7d10\u3065\u3051\u307e\u3059\u3002 \u30e1\u30fc\u30eb\u901a\u77e5\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002 \u6b21\u306b\u901a\u77e5\u5148\u3084\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u5b9a\u7fa9\u3059\u308b\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 \u4ee5\u4e0a\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u3068\u3001\u6307\u5b9a\u3057\u305f\u901a\u77e5\u5148\u306b\u78ba\u8a8d\u30e1\u30fc\u30eb\u304c\u5c4a\u304d\u307e\u3059\u306e\u3067\u3001\u8a8d\u8a3cURL\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n \u8ee2\u9001\u5148\u306e\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n \u30d0\u30b1\u30c3\u30c8\u30dd\u30ea\u30b7\u30fc\u3067\u3001\u4ee5\u4e0b\u306e\u5236\u9650\u3092\u884c\u3044\u307e\u3059\u3002
\u2461CLI\u3092\u4f7f\u3063\u3066\u3001S3\u306b\u8ee2\u9001\u3059\u308b\u3002
\u2462\u753b\u50cf\u304c\u4fdd\u5b58\u3055\u308c\u305f\u3089\u3001SNS\u3067\u30e1\u30fc\u30eb\u901a\u77e5\u3059\u308b\u3002<\/p>\n\n\n\n<\/figure>\n\n\n\n
\u5229\u7528\u30b5\u30fc\u30d3\u30b9<\/h2>\n\n\n\n
\u3000S3\u306b\u753b\u50cf\u3092\u8ee2\u9001\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n
\u3000\u753b\u50cf\u306e\u4fdd\u5b58\u5834\u6240\u3068\u3057\u3066\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n
\u3000S3\u306b\u4fdd\u5b58\u3055\u308c\u305f\u969b\u3001\u901a\u77e5\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n
\u3000\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n\u4f5c\u3063\u3066\u307f\u308b<\/h2>\n\n\n\n
\u4e00\u3064\u305a\u3064\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff5e\uff01<\/p>\n\n\n\nIAM<\/h3>\n\n\n\n
\u6a29\u9650\u306f\u3001\u6307\u5b9a\u3057\u305fS3\u30d0\u30b1\u30c3\u30c8\u3078\u306e\u8ee2\u9001\u306e\u307f\u3067\u3059\u3002
\u5fc5\u8981\u6700\u4f4e\u9650\u306e\u6a29\u9650\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<\/figure>\n\n\n\n
\u201d\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u201d\u3068\u201d\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u201d\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002
CLI\u3067\u5fc5\u8981\u3068\u306a\u308b\u91cd\u8981\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<\/figure>\n\n\n\n
SNS<\/h3>\n\n\n\n
\u521d\u3081\u306b\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308b\u30c8\u30d4\u30c3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002
\u901a\u77e5\u306e\u4ef6\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<\/figure>\n\n\n\n
SMS\u3001HTTP(S)\u3001Lambda\u306a\u3069\u304c\u9078\u629e\u53ef\u80fd\u3067\u3001\u4eca\u56de\u306f”E\u30e1\u30fc\u30eb”\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<\/figure>\n\n\n\n
S3<\/h3>\n\n\n\n
<\/figure>\n\n\n\n
\u3000\u2460\u7279\u5b9a\u306eIAM\u306e\u307f\u3068\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u5236\u9650<\/strong>
\u3000\u2461S3\u306f\u3001\u8ee2\u9001\uff08PUT\uff09\u306e\u307f\u3068\u3059\u308b\u30a2\u30af\u30b7\u30e7\u30f3\u5236\u9650<\/strong>
\u3000\u2462S3\u306f\u3001\u5c02\u7528\u30d0\u30b1\u30c3\u30c8\u306e\u307f\u3068\u3059\u308b\u30d0\u30b1\u30c3\u30c8\u5236\u9650<\/strong>
\u3000\u2463\u7279\u5b9a\u306e\u30e9\u30ba\u30d1\u30a4\u306e\u307f\u30a2\u30af\u30bb\u30b9\u53ef\u3068\u3059\u308bIP\u5236\u9650<\/strong><\/p>\n\n\n\n<\/figure>\n\n\n\n