{"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

\u69cb\u6210\u56f3<\/h2>\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
\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

\"AWS\u69cb\u6210\u56f3\"<\/figure>\n\n\n\n

\u5229\u7528\u30b5\u30fc\u30d3\u30b9<\/h2>\n\n\n\n

\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
\u3000S3\u306b\u753b\u50cf\u3092\u8ee2\u9001\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u30fbS3 (Amazon Simple Storage Service)<\/strong><\/p>\n\n\n\n

\u3000\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002
\u3000\u753b\u50cf\u306e\u4fdd\u5b58\u5834\u6240\u3068\u3057\u3066\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\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
\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

\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
\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

\u5404\u30b5\u30fc\u30d3\u30b9\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u3001\u7d44\u307f\u5408\u308f\u305b\u3066\u3044\u304d\u307e\u3059\u3002
\u4e00\u3064\u305a\u3064\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff5e\uff01<\/p>\n\n\n\n

IAM<\/h3>\n\n\n\n

\u30e9\u30ba\u30d1\u30a4\u3067\u4f7f\u7528\u3059\u308bIAM\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002
\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

\"IAM\"<\/figure>\n\n\n\n

\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
\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

\"IAM\"<\/figure>\n\n\n\n

SNS<\/h3>\n\n\n\n

\u30e1\u30fc\u30eb\u901a\u77e5\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002
\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

\"SNS\"<\/figure>\n\n\n\n

\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
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

\"SNS\"<\/figure>\n\n\n\n

\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

S3<\/h3>\n\n\n\n

\u8ee2\u9001\u5148\u306e\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"S3\"<\/figure>\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

\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

\"S3\"<\/figure>\n\n\n\n

\u6b21\u306bSNS\u9023\u643a\u306e\u305f\u3081\u306b\u901a\u77e5\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002
S3\u30d0\u30b1\u30c3\u30c8\u306b\u3001\u62e1\u5f35\u5b50”.jpg”\u30d5\u30a1\u30a4\u30eb\u304c”PUT(\u4fdd\u5b58)”\u3055\u308c\u305f\u3068\u304d\u306b\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"S3\"<\/figure>\n\n\n\n

\u6700\u5f8c\u306b\u3001SNS\u3068\u7d10\u3065\u3051\u307e\u3059\u3002<\/p>\n\n\n\n

\"S3\"<\/figure>\n\n\n\n

CLI<\/h3>\n\n\n\n

\u3044\u3088\u3044\u3088\u6700\u5f8c\u3067\u3059\u3002\u30e9\u30ba\u30d1\u30a4\u306bCLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u8a73\u3057\u304f\u306f\u3053\u3061\u3089\u3092\u53c2\u7167\u4e0b\u3055\u3044\u3002
https:\/\/docs.aws.amazon.com\/ja_jp\/cli\/latest\/userguide\/install-cliv2-linux.html<\/a><\/p>\n\n\n\n

\u30e9\u30ba\u30d1\u30a4\u306bIAM\u30e6\u30fc\u30b6\u30fc\u306e\u201d\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u201d\u3068\u201d\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u201d\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"CLI\"<\/figure>\n\n\n\n

\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n

\u6e96\u5099\u304c\u6574\u3063\u305f\u306e\u3067\u3001\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff5e\uff01<\/p>\n\n\n\n

\u753b\u50cf\u64ae\u5f71\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002
\u30b5\u30a4\u30ba\u3001\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306a\u3069\u3082\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"CLI\"<\/figure>\n\n\n\n

S3\u8ee2\u9001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"CLI\"<\/figure>\n\n\n\n

S3\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n

\"S3\"<\/figure>\n\n\n\n

\u8ee2\u9001OK\u3067\u3059\uff01<\/p>\n\n\n\n

\u30e1\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002
\u6307\u5b9a\u3057\u305f\u4ef6\u540d\u30fb\u9001\u4fe1\u5143\u306eIP\u30a2\u30c9\u30ec\u30b9\u30fb\u30d0\u30b1\u30c3\u30c8\u540d\u30fb\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002
\u3057\u304b\u3057\u3001\u5206\u304b\u308a\u3065\u3089\u3044\u306e\u3067\u3001\u30e1\u30fc\u30eb\u306b\u7279\u5316\u3059\u308b\u306a\u3089\u300cSES\u300d\u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u304c\u3044\u3044\u3068\u5206\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\"SNS\"<\/figure>\n\n\n\n

\u4ee5\u4e0a\u3067\u5b8c\u4e86\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u4eca\u5f8c\u306e\u8ab2\u984c<\/h2>\n\n\n\n

\u4f5c\u308a\u305f\u3044\u3082\u306e\u306f\u3001\u3067\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u3044\u304f\u3064\u304b\u8ab2\u984c\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002

\u2460IoT\u3068AWS\u306e\u9023\u643a\u65b9\u6cd5\u306f\u3001CLI\u4ee5\u5916\u3092\u691c\u8a0e\u3059\u308b<\/strong><\/p>\n\n\n\n

\u3000CLI\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001IoT\u7aef\u672b\uff08\u30e9\u30ba\u30d1\u30a4\uff09\u306bIAM\u30e6\u30fc\u30b6\u30fc\u306e\u30ad\u30fc\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002
\u3000\u3053\u306e\u60c5\u5831\u306f\u3068\u3066\u3082\u91cd\u8981\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3088\u308bAWS\u306e\u64cd\u4f5c\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u4fdd\u7ba1\u306b\u306f\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002
\u3000\u4ed6\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u5f71\u97ff\u3092\u6291\u3048\u308b\u305f\u3081\u306b\u3001\u5fc5\u8981\u6700\u4f4e\u9650\u306e\u6a5f\u80fd\u3084\u30a2\u30af\u30bb\u30b9\u5236\u9650\u306a\u3069\u884c\u3044\u307e\u3057\u305f\u304c\u3001\u3082\u3063\u3068\u3044\u3044\u65b9\u6cd5\u306f\u306a\u3044\u304b\u691c\u8a0e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\u3000\u6700\u8fd1\u3001IoT\u30b5\u30fc\u30d3\u30b9\u304c\u62e1\u5145\u3057\u3066\u304a\u308a\u3001”AWS IoT Core”\u3068\u3044\u3046\u3082\u306e\u3067\u9023\u643a\u304c\u5bb9\u6613\u306b\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002
\u3000\u6b21\u56de\u306f\u3053\u308c\u306b\u6311\u6226\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u2461\u71b1\u691c\u77e5\u30bb\u30f3\u30b5\u30fc\u3092\u5229\u7528\u3059\u308b<\/strong><\/p>\n\n\n\n

\u3000\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3093\u3067\u5b9a\u671f\u5b9f\u884c\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u4e0d\u8981\u306a\u753b\u50cf\u3082\u8ee2\u9001\u3055\u308c\u308b\u306e\u3067\u3001\u3084\u3063\u304b\u3044\u3067\u3057\u305f\uff08\u7b11\uff09
\u3000\u4f55\u304b\u691c\u77e5\u3057\u305f\u969b\u306b\u3001\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b”\u71b1\u691c\u77e5\u30bb\u30f3\u30b5\u30fc”\u3082\u7d44\u307f\u5408\u308f\u305b\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u2462\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u753b\u50cf\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u3059\u308b<\/strong><\/p>\n\n\n\n

\u3000\u30de\u30cd\u30fc\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u3060\u3068\u3001\u3069\u3093\u306a\u3082\u306e\u304c\u64ae\u5f71\u3055\u308c\u305f\u306e\u304b\u5206\u304b\u308a\u3065\u3089\u3044\u3067\u3059\u306d\u3002
\u3000Web\u30da\u30fc\u30b8\u3067\u4e00\u89a7\u5316\u3059\u308b\u3088\u3046\u306b\u6539\u5584\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002

\u4eca\u5f8c\u3082IoT\u3068AWS\u9023\u643a\u3092\u691c\u8a3c\u3057\u3066\u3001\u8a18\u4e8b\u306b\u3057\u3066\u3044\u304d\u307e\u3059(^o^)\/<\/p>\n","protected":false},"excerpt":{"rendered":"

\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 \u69cb\u6210\u56f3 \u30e9\u30ba\u30d1\u30a4\u304b\u3089CLI\u3092\u4f7f […]<\/p>\n","protected":false},"author":6,"featured_media":2395,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[9,25,24,14,22,23],"_links":{"self":[{"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2311"}],"collection":[{"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=2311"}],"version-history":[{"count":65,"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2311\/revisions"}],"predecessor-version":[{"id":2403,"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2311\/revisions\/2403"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/media\/2395"}],"wp:attachment":[{"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=2311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=2311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ryucom.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=2311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}