{"id":1432,"date":"2021-04-19T08:25:20","date_gmt":"2021-04-18T23:25:20","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/?p=1432"},"modified":"2021-04-19T08:25:20","modified_gmt":"2021-04-18T23:25:20","slug":"codebuild-debug-session-manager","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2021\/04\/19\/codebuild-debug-session-manager\/","title":{"rendered":"\u30bb\u30c3\u30b7\u30e7\u30f3\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u5229\u7528\u3057\u3066Codebuild\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b"},"content":{"rendered":"
CodeBuild \u306f\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3001\u30c7\u30d7\u30ed\u30a4\u53ef\u80fd\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210\u3067\u304d\u308b\u5b8c\u5168\u30de\u30cd\u30fc\u30b8\u30c9\u578b\u306e\u30d3\u30eb\u30c9\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002https:\/\/aws.amazon.com\/jp\/codebuild\/<\/a><\/p>\n \u985e\u4f3c\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u3001CircleCi\u3084Jenkins\u306a\u3069\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n Session Manager \u306f\u30d5\u30eb\u30de\u30cd\u30fc\u30b8\u30c9\u578b AWS Systems Manager \u6a5f\u80fd\u3067\u3042\u308a\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30ef\u30f3\u30af\u30ea\u30c3\u30af\u30d6\u30e9\u30a6\u30b6\u30d9\u30fc\u30b9\u306e\u30b7\u30a7\u30eb\u3084 AWS Command Line Interface (AWS CLI) \u3092\u4ecb\u3057\u3066 Amazon Elastic Compute Cloud (Amazon EC2) \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3001\u30aa\u30f3\u30d7\u30ec\u30df\u30b9\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3001\u304a\u3088\u3073\u4eee\u60f3\u30de\u30b7\u30f3 (VM) \u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002 \u4eca\u56de\u306f\u3001Codebuild\u5b9f\u884c\u4e2d\u306e\u4eee\u60f3\u74b0\u5883\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u76ee\u7684\u3067\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n Coebuild\u69cb\u7bc9\u4e2d\u306b\u30d3\u30eb\u30c9\u5931\u6557\u3057\u305f\u969b\u306b\u3001\u4fee\u6b63\u3057\u305f\u3082\u306e\u3092\u518d\u5ea6\u30bd\u30fc\u30b9\u30d7\u30ed\u30d0\u30a4\u30c0\u306bpush\u3059\u308b\u3088\u308a\u3082\u7d20\u65e9\u304f\u4fee\u6b63\u3057\u305f\u3082\u306e\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n \u30d3\u30eb\u30c9\u3092\u4e00\u6642\u505c\u6b62\u3059\u308b\u306b\u306f\u3001 <\/p>\n<\/li>\nSession Manager\u3068\u306f<\/h2>\n
\nhttps:\/\/docs.aws.amazon.com\/ja_jp\/systems-manager\/latest\/userguide\/session-manager.html<\/a><\/p>\n\u3044\u3064\u30c7\u30d0\u30c3\u30b0\u3057\u305f\u3044\u306e\u304b<\/h2>\n
\u65b9\u6cd5<\/h2>\n
buildspec\u30d5\u30a1\u30a4\u30eb\u306bcodebuild-breakpoint\u30b3\u30de\u30f3\u30c9\u3092\u633f\u5165\u3059\u308b<\/h3>\n
buildspec<\/code> \u30d5\u30a1\u30a4\u30eb\u306e\u4efb\u610f\u306e\u30d3\u30eb\u30c9\u30d5\u30a7\u30fc\u30ba\u306b
codebuild-breakpoint<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u633f\u5165\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u70b9\u3067\u30d3\u30eb\u30c9\u304c\u4e00\u6642\u505c\u6b62\u3055\u308c\u307e\u3059\u3002<\/p>\n
phases:\n pre_build:\n commands:\n - echo Entered the pre_build phase...\n - echo "Hello World" > \/tmp\/hello-world\n - codebuild-breakpoint<\/code><\/pre>\n
\u30c7\u30d0\u30c3\u30b0\u3059\u308b<\/h3>\n
\n
\n<\/li>\n
\n<\/li>\n{\n"Effect": "Allow",\n"Action": [\n"ssmmessages:CreateControlChannel",\n"ssmmessages:CreateDataChannel",\n"ssmmessages:OpenControlChannel",\n"ssmmessages:OpenDataChannel"\n],\n"Resource": "*"\n}<\/code><\/pre>\n
\n<\/li>\n
\n<\/li>\ncodebuild-resume<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30d3\u30eb\u30c9\u304c\u518d\u958b\u3055\u308c\u3066\u6700\u5f8c\u307e\u3067\u51e6\u7406\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n
\u53c2\u8003<\/h2>\n