{"id":13249,"date":"2023-07-28T07:04:12","date_gmt":"2023-07-27T22:04:12","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=13249"},"modified":"2023-08-01T07:27:05","modified_gmt":"2023-07-31T22:27:05","slug":"aws-codecommit%e3%81%ae%e3%83%aa%e3%83%9d%e3%82%b8%e3%83%88%e3%83%aa%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88aws-cli%ef%bc%8fcloudshell%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/13249","title":{"rendered":"AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\uff01\uff08AWS CLI\uff0fCloudShell\uff09"},"content":{"rendered":"<p>AWS CLI\u3067AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u74b0\u5883\u306f\u3001AWS CloudShell\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>AWS CLI\u3067AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h2>\n<p>Tokyo\u30ea\u30fc\u30b8\u30e7\u30f3\u3067\u3001sample-repo\u3068\u3044\u3046\u540d\u524d\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092AWS CLI\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ aws codecommit create-repository --repository-name sample-repo --repository-description &quot;Sample Repository&quot; --region ap-northeast-1\r\n{\r\n    &quot;repositoryMetadata&quot;: {\r\n        &quot;accountId&quot;: &quot;861679972911&quot;,\r\n        &quot;repositoryId&quot;: &quot;514e6188-17db-43c9-94c6-e0130aab9c0e&quot;,\r\n        &quot;repositoryName&quot;: &quot;sample-repo&quot;,\r\n        &quot;repositoryDescription&quot;: &quot;Sample Repository&quot;,\r\n        &quot;lastModifiedDate&quot;: &quot;2023-07-27T21:48:57.880000+00:00&quot;,\r\n        &quot;creationDate&quot;: &quot;2023-07-27T21:48:57.880000+00:00&quot;,\r\n        &quot;cloneUrlHttp&quot;: &quot;https:\/\/git-codecommit.ap-northeast-1.amazonaws.com\/v1\/repos\/sample-repo&quot;,\r\n        &quot;cloneUrlSsh&quot;: &quot;ssh:\/\/git-codecommit.ap-northeast-1.amazonaws.com\/v1\/repos\/sample-repo&quot;,\r\n        &quot;Arn&quot;: &quot;arn:aws:codecommit:ap-northeast-1:861679972911:sample-repo&quot;\r\n    }\r\n}\r\n<\/pre>\n<h2>AWS CLI\u3067\u4f5c\u6210\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3059\u308b\uff01<\/h2>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u3001git\u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3057\u307e\u3059\u3002\u7a7a\u306e\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u5404\u7a2e\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u5f8c\u3001Commit\u304a\u3088\u3073\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\uff08CodeCommit\uff09\u3078\u306ePush\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ git clone codecommit::ap-northeast-1:\/\/sample-repo\r\nCloning into 'sample-repo'...\r\nwarning: You appear to have cloned an empty repository.\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>AWS CloudShell\u3092\u4f7f\u7528\u3059\u308b\u3068\u5bb9\u6613\u306bCodeCommit\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210\u3068\u3001\u4f5c\u6210\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/12112\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u64cd\u4f5c\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/eyecatch_aws_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u64cd\u4f5c\u3059\u308b\uff01<\/div><div class=\"substr\">AWS\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS CLI\u3067AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u74b0\u5883\u306f\u3001AWS CloudShell\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":8172,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[370],"tags":[288,353,398,833,758,834,506,835,319],"class_list":["post-13249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operation","tag-aws","tag-aws-cli","tag-aws-cloudshell","tag-aws-codecommit","tag-cloudshell","tag-codecommit","tag-git","tag-835","tag-319"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=13249"}],"version-history":[{"count":7,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13249\/revisions"}],"predecessor-version":[{"id":13377,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13249\/revisions\/13377"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/8172"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=13249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=13249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=13249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}