{"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
\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 <\/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 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 \u307e\u3068\u3081\u308b\u3068\u3001\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n \u3053\u306e\u984c\u6750\u3092\u4e0b\u8a18\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n \u3044\u304d\u306a\u308aGo\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u3044\u304f\u306e\u3067\u306f\u306a\u304f\u3001\u307e\u305a\u30d5\u30a3\u30b8\u30d3\u30ea\u30c6\u30a3(\u5b9f\u884c\u53ef\u80fd\u6027)\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n \u306f\u3001\u306a\u3093\u3068\u306a\u304f\u51fa\u6765\u305d\u3046\u3060\u3001\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u304c\u3001AWS\u5074\u304c\u5bfe\u5fdc\u51fa\u6765\u3066\u3044\u306a\u304f\u3066\u5b9f\u73fe\u51fa\u6765\u306a\u3044\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002 \u3053\u3053\u3067\u79c1\u306f \u307e\u305f\u3001 \u3068\u3044\u3046\u3053\u3068\u3067\u4f55\u306f\u3068\u3082\u3042\u308c\u30d5\u30a3\u30b8\u30d3\u30ea\u30c6\u30a3\u3092 AWS Batch\u306e http:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/batch\/index.html#cli-aws-batch<\/a><\/p>\n \u8a72\u5f53\u3057\u305d\u3046\u306a\u3082\u306e\u306f \u3053\u3053\u3067\u5c11\u3057\u8a71\u306f\u9038\u308c\u307e\u3059\u304c\u3001 \u3053\u308c\u3067\u3001 \u8a71\u304c\u9038\u308c\u307e\u3057\u305f\u304c\u672c\u984c\u306b\u623b\u308a\u307e\u3059\u3002 \u7c21\u5358\u306b\u53d6\u5f97\u51fa\u6765\u307e\u3057\u305f\u3002 \u51fa\u6765\u307e\u3057\u305f\u3002 Go\u306e\u30c6\u30b9\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3057\u3066\u3001\u3068\u3044\u3046\u3053\u3068\u3060\u3068\u3061\u3087\u3063\u3068\u9762\u5012\u305d\u3046\u3067\u3057\u305f\u304c\u3001 \u3053\u3053\u3067SDK\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u898b\u307e\u3059\u3002 https:\/\/docs.aws.amazon.com\/sdk-for-go\/api\/service\/batch\/<\/a><\/p>\n
\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
\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>\naws 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
\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\n
\n
1. \u30d5\u30a3\u30b8\u30d3\u30ea\u30c6\u30a3\u30c1\u30a7\u30c3\u30af<\/h2>\n
\n
\n\u306a\u306e\u3067\u5b9f\u73fe\u53ef\u80fd\u304b\u3069\u3046\u304b\u3001\u3068\u3044\u3046\u306e\u3092\u307e\u305a\u6700\u521d\u306b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\naws cli<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002
\nAWS\u306eGo\u306eSDK\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u898b\u306a\u304c\u3089\u5b9f\u969b\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u3066\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u898b\u305f\u308a\u3057\u3066\u3001\u3001\u3001\u3068\u3044\u3046\u98a8\u306b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u6642\u9593\u304c\u304b\u304b\u308b\u3057\u9762\u5012\u3067\u3059\u3002
\n\u30d5\u30a3\u30b8\u30d3\u30ea\u30c6\u30a3\u30c1\u30a7\u30c3\u30af\u306a\u306e\u3067\u7c21\u5358\u306b\u5b9f\u73fe\u53ef\u80fd\u304b\u3069\u3046\u304b\u3060\u3051\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f\u3044\u3001\u3068\u3044\u3046\u306e\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\naws cli<\/code>\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308bAPI\u306fSDK\u306b\u3082\u307b\u3068\u3093\u3069\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002(\u3068\u601d\u3063\u3066\u3044\u307e\u3059)
\n\u306a\u306e\u3067aws cli<\/code>\u3067\u5b9f\u73fe\u53ef\u80fd\u306a\u3089\u307b\u3068\u3093\u3069\u306eSDK\u3067\u3082\u5b9f\u73fe\u53ef\u80fd\u3060\u3068\u601d\u3044\u307e\u3059\u3002
\n\u307e\u308c\u306bSDK\u5074\u304c\u8ffd\u3044\u3064\u3044\u3066\u3044\u306a\u3044\u3053\u3068\u3082\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306faws cli<\/code>\u306bSDK\u304c\u8ffd\u5f93\u3057\u3066\u3044\u3063\u3066\u3044\u308b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002
\n\u307e\u305f\u3001\u3082\u3057SDK\u5074\u306e\u6a5f\u80fd\u304c\u307e\u3060\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u3057\u3066\u3082\u3001\u6700\u60aaGo\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089aws cli<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u76f4\u63a5\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u53ef\u80fd\u306b\u306a\u308b\u306e\u3067\u3001
aws cli<\/code>\u3067\u5b9f\u73fe\u53ef\u80fd\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u308c\u3070\u30d5\u30a3\u30b8\u30d3\u30ea\u30c6\u30a3\u7684\u306b\u306fOK\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002
\n\u3067\u304d\u308c\u3070Go\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089aws cli<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u304f\u3001\u3068\u3044\u3046\u5b9f\u88c5\u306f\u3084\u308a\u305f\u304f\u3042\u308a\u307e\u305b\u3093\u304c\u3002\u3002<\/p>\n
aws cli<\/code>\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n
aws cli<\/code>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n
Available Commands<\/code>\u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u3067\u3059\u304c\u3001<\/p>\n
\n
describe-job-definitions<\/code>\u3068\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n
describe-job-definitions<\/code>\u306e\u8a73\u7d30\u3092\u898b\u3066\u307f\u308b\u3068\u3001
--job-definition-name<\/code>\u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u7d5e\u308a\u8fbc\u3080\u3053\u3068\u3082\u51fa\u6765\u305d\u3046\u3060\u3057\u3001\u306a\u3093\u3068\u306a\u304f\u5b9f\u73fe\u3067\u304d\u305d\u3046\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002
\nAWS Batch\u4e0a\u306b\u30b8\u30e7\u30d6\u30ad\u30e5\u30fc\u3084\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3001\u5b9f\u969b\u306baws cli<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n
\naws cli<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u8a66\u3059\u6642\u306b\u624b\u8efd\u306b\u8a66\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002
\n\u958b\u767a\u8005\u306e\u7686\u69d8\u306f\u8907\u6570\u306eAWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u304a\u6301\u3061\u306e\u65b9\u304c\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002
\n\u79c1\u3082\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30fb\u4f1a\u793e\u7528\u306a\u3069\u8907\u6570\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6240\u6301\u3057\u3066\u3044\u307e\u3059\u3002
\n\u8907\u6570\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6240\u6301\u3057\u3066\u3044\u308b\u5834\u5408\u3001AWS\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3068AWS\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u3092~\/.aws\/config<\/code>\u3068
~\/.aws\/credentials<\/code>\u3067\u5b9a\u7fa9\u3057\u3001
aws cli<\/code>\u30b3\u30de\u30f3\u30c9\u306b
--profile<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u52a0\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u3044\u5206\u3051\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002
\n\u79c1\u3082\u305d\u3046\u306a\u306e\u3067\u3059\u304c\u3001aws cli<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u304f\u6642\u306b\u6bce\u56de
--profile<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u9762\u5012\u3060\u306a\u3001\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u3002
\nAWS_DEFAULT_PROFILE<\/code>\u306e\u74b0\u5883\u5909\u6570\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u3001\u305d\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u4e2d\u306f
--profile<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u52a0\u305b\u305a\u306b
aws<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u306e\u3067\u4fbf\u5229\u306a\u306e\u3067\u3059\u304c\u3001\u983b\u7e41\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u5909\u3048\u3066\u5b9f\u884c\u3057\u305f\u3044\u6642\u306f\u307e\u3060\u3061\u3087\u3063\u3068\u4e0d\u4fbf\u306b\u611f\u3058\u307e\u3059\u3002
\n\u306a\u306e\u3067\u3001peco<\/code>\u3092\u4f7f\u7528\u3057\u3001\u4e0b\u8a18alias\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u7c21\u5358\u306b\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u305f\u3089\u4fbf\u5229\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n
alias p='export AWS_DEFAULT_PROFILE=$(grep -iE "^[]+[^*]" ~\/.aws\/credentials|tr -d []|peco)'<\/code><\/pre>\n
p<\/code>\u3068\u53e9\u3051\u3070\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u5b9f\u884c\u3057\u305f\u3044\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5207\u308a\u66ff\u3048\u3067\u304d\u3001\u305d\u306e\u3042\u3068\u306f
--profile<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u7121\u3057\u306b
aws<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n
\n
\ndescribe-job-definitions<\/code>\u306b
--job-definition-name<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n
$ aws batch describe-job-definitions --job-definition-name test-job-definition\nJOBDEFINITIONS arn:aws:batch:ap-northeast-1:999999999999:job-definition\/test-job-definition:2 test-job-definition 2 INACTIVE container\nCONTAINERPROPERTIES busybox 2000 1\nCOMMAND echo\nCOMMAND 'hello world'\nJOBDEFINITIONS arn:aws:batch:ap-northeast-1:999999999999:job-definition\/test-job-definition:3 test-job-definition 3 ACTIVE container\nCONTAINERPROPERTIES busybox 2000 1\nCOMMAND echo\nCOMMAND Ref::Hoge\nJOBDEFINITIONS arn:aws:batch:ap-northeast-1:999999999999:job-definition\/test-job-definition:1 test-job-definition 1 INACTIVE container\nCONTAINERPROPERTIES busybox 2000 2\nCOMMAND echo\nCOMMAND 'hello world'<\/code><\/pre>\n
\n\u3061\u3083\u3093\u3068ARN\u306e\u60c5\u5831\u3082\u53d6\u5f97\u51fa\u6765\u3066\u3044\u308b\u306e\u3067\u5927\u4e08\u592b\u305d\u3046\u3067\u3059\u3002
\nACTIVE<\/code>\u3068
INACTIVE<\/code>\u304c\u3042\u308b\u306e\u3067
ACTIVE<\/code>\u306e\u3082\u306e\u3060\u3051\u306b\u7d5e\u308a\u8fbc\u3081\u305d\u3046\u3067\u3059\u3002<\/p>\n
$ aws batch describe-job-definitions --job-definition-name test-job-definition --status ACTIVE\nJOBDEFINITIONS arn:aws:batch:ap-northeast-1:999999999999:job-definition\/test-job-definition:3 test-job-definition 3 ACTIVE container\nCONTAINERPROPERTIES busybox 2000 1\nCOMMAND echo\nCOMMAND Ref::Hoge<\/code><\/pre>\n
\n\u3057\u304b\u3057\u3001\u3082\u3057ACTIVE<\/code>\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u8907\u6570\u53d6\u5f97\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002
\n\u307e\u305f\u3001\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u306e\u4f5c\u6210\u65e5\u3001\u306a\u3069\u3082\u30ec\u30b9\u30dd\u30f3\u30b9\u3068\u3057\u3066\u8fd4\u3063\u3066\u3053\u306a\u3044\u305f\u3081\u3001\u4f5c\u6210\u304c\u4e00\u756a\u65b0\u3057\u3044\u3082\u306e\u3001\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002
\n\u304c\u3001ARN\u3092\u898b\u308b\u3068\u3001arn:aws:batch:ap-northeast-1:999999999999:job-definition\/test-job-definition:3<\/code>\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u3053\u306e\u6700\u5f8c\u306e
3<\/code>\u3068\u3044\u3046\u6570\u5024\u304c\u4e00\u756a\u5927\u304d\u3044\u3082\u306e\u304c\u6700\u65b0\u306e\u30b8\u30e7\u30d6\u30c7\u30a3\u30d5\u30a3\u30cb\u30b8\u30e7\u30f3\u306b\u306a\u308b\u306e\u3067\u3001Go\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u307b\u3046\u3067\u305d\u306e\u5224\u5b9a\u3092\u3057\u3066\u3084\u308c\u3070\u3044\u3051\u305d\u3046\u3067\u3059\u3002<\/p>\n
aws cli<\/code>\u3067\u3042\u308c\u3070\u7c21\u5358\u306b\u30d5\u30a3\u30b8\u30d3\u30ea\u30c6\u30a3\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002
\n\u3068\u3044\u3046\u3053\u3068\u3067\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u3044\u304d\u307e\u3059\u3002<\/p>\n2. SDK\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u898b\u306a\u304c\u3089\u5b9f\u88c5<\/h2>\n
\nGo\u306eAWS Batch\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n