{"id":412,"date":"2017-10-27T12:30:15","date_gmt":"2017-10-27T03:30:15","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2017\/10\/27\/develop-application-using-awssdk"},"modified":"2017-10-27T12:30:15","modified_gmt":"2017-10-27T03:30:15","slug":"develop-application-using-awssdk","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2017\/10\/27\/develop-application-using-awssdk\/","title":{"rendered":"AWS SDK\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u52b9\u7387\u3088\u304f\u958b\u767a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"

\u524d\u7530\u3067\u3059\u3002
\n\u5148\u65e5\u3001AWS\u8a8d\u5b9a\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u8a66\u9a13\u306b\u7121\u4e8b\u306b\u5408\u683c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002
\n\u5f97\u70b9\u304c69%\u3067\u7d50\u69cb\u30ae\u30ea\u30ae\u30ea\u306a\u70b9\u6570\u3060\u3063\u305f\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u306a\u3093\u3068\u304b\u5408\u683c\u51fa\u6765\u3066\u3088\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\n

\u4eca\u65e5\u306f\u3001AWS SDK\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u6642\u306b\u81ea\u5206\u306a\u308a\u306b\u884c\u3063\u3066\u3044\u308b\u52b9\u7387\u304c\u3088\u3044\u3068\u601d\u3063\u3066\u3044\u308b\u65b9\u6cd5\u3092\u307e\u3068\u3081\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002
\n\u4f8b\u3068\u3057\u3066\u3001\u4e0b\u8a18\u30b1\u30fc\u30b9\u3092\u984c\u6750\u306b\u958b\u767a\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u984c\u6750<\/h2>\n

\u5148\u65e5\u3001\u300cAWS Batch\u3067\u975e\u540c\u671f\u30b8\u30e7\u30d6\u30b7\u30b9\u30c6\u30e0\u304c\u7c21\u5358\u306b\u69cb\u7bc9\u51fa\u6765\u305f\u8a71<\/a>\u300d\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u3002
\n\u305d\u306e\u6642\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u3063\u305f\u3001\u3068\u3044\u3046\u8a71\u3092\u3055\u305b\u3066\u9802\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u6539\u5584\u3057\u305f\u3044\u7b87\u6240\u304c\uff11\u70b9\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n

\"\"<\/p>\n

\u305d\u308c\u306f\u2461\u306eGo\u3067\u4f5c\u3063\u305fAPI\u304b\u3089AWS Batch\u306b\u30b8\u30e7\u30d6\u3092\u30b5\u30d6\u30df\u30c3\u30c8\u3059\u308b\u7b87\u6240\u3067\u3059\u3002
\nAWS Batch\u306b\u30b8\u30e7\u30d6\u3092\u30b5\u30d6\u30df\u30c3\u30c8\u3059\u308b\u306e\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3067\u30b5\u30d6\u30df\u30c3\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n

aws batch submit-job \n  --job-name submit_job_test \n  --job-queue arn:aws:batch:ap-northeast-1:99999999999999:job-queue\/test-job-queue \n  --job-definition arn:aws:batch:ap-northeast-1:9999999999999:job-definition\/test-job-definition:1 \n  --parameters Hoge=test!<\/code><\/pre>\n

Go\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u3067Go\u306eAWS SDK\u3092\u4f7f\u7528\u3057\u3066\u4e0a\u8a18\u306e\u3088\u3046\u306a\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002
\n\u30b5\u30d6\u30df\u30c3\u30c8\u3059\u308b\u6642\u306b\u30b8\u30e7\u30d6\u30ad\u30e5\u30fc\u3084\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u306eARN\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3057\u305f\u6642\u306f\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u306eARN\u304c\u5909\u308f\u308b\u306e\u3067Go\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u306eARN\u3092\u5909\u3048\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002
\nGo\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u3067\u306f\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u306f\u5b9a\u7fa9\u3057\u3066\u3042\u308b\u74b0\u5883\u5909\u6570\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3067\u306f\u306a\u304f\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u4e8c\u30b8\u30e7\u30f3\u306e\u74b0\u5883\u5909\u6570\u3092\u5909\u66f4\u3059\u308c\u3070OK\u306a\u306e\u3067\u3059\u304c\u3001AWS Batch\u5074\u306e\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3057\u305f\u6642\u306b\u3001Go\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u306e\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u4e8c\u30b8\u30e7\u30f3ARN\u306e\u74b0\u5883\u5909\u6570\u3092\u5909\u3048\u5fd8\u308c\u308b\u3001\u3068\u3044\u3046\u5371\u60e7\u304c\u3042\u308a\u307e\u3059\u3002
\n\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3057\u305f\u6642\u306bGo\u5074\u306e\u74b0\u5883\u5909\u6570\u3092\u66f4\u65b0\u3059\u308b\u306e\u3092\u5fd8\u308c\u306a\u3051\u308c\u3070\u3044\u3044\u306e\u3067\u73fe\u5728\u306e\u8a2d\u8a08\u3067\u3082\u554f\u984c\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001Go\u5074\u306e\u5909\u66f4\u6f0f\u308c\u306a\u3069\u306e\u30df\u30b9\u3092\u4e8b\u524d\u306b\u9632\u3050\u70ba\u306b\u51fa\u6765\u308c\u3070\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u306e\u540d\u524d\u3060\u3051\u3067\u6700\u65b0\u306eARN\u3092\u81ea\u52d5\u53d6\u5f97\u3057\u3066AWS Batch\u306b\u30b5\u30d6\u30df\u30c3\u30c8\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n

\u307e\u3068\u3081\u308b\u3068\u3001\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n