{"id":1756,"date":"2020-03-25T15:55:15","date_gmt":"2020-03-25T12:55:15","guid":{"rendered":"https:\/\/artem.services\/?p=1756"},"modified":"2020-03-25T15:57:19","modified_gmt":"2020-03-25T12:57:19","slug":"codecommit-git","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1756","title":{"rendered":"CodeCommit &#8212; Git"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-214\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo.png\" alt=\"\" width=\"975\" height=\"450\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo.png 975w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo-300x138.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo-768x354.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo-954x440.png 954w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/p>\n<h3>HTTPS<\/h3>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 <strong>Git<\/strong> \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u043c \u0432 <strong>CodeCommit<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <strong>AIM<\/strong> \u0440\u043e\u043b\u044c, \u043d\u0430 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d <a href=\"https:\/\/artem.services\/?p=152\" target=\"_blank\" rel=\"noopener noreferrer\">AWS Cli<\/a>. \u0422\u0430\u043a \u0436\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f &quot;<strong>credential-helper<\/strong>&quot;, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f <strong>Git<\/strong>&#39;\u0430:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n~\/.gitconfig\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0418 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n[credential]\r\n    helper = !aws codecommit credential-helper $@\r\n    UseHttpPath = true\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 <strong>CodeCommit<\/strong> \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 <strong>HTTPS<\/strong> \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043d\/\u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>&nbsp;<\/p>\n<h3>SSH<\/h3>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 <strong>SSH<\/strong>, \u043d\u0443\u0436\u0435\u043d <strong>IAM<\/strong> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043a <strong>CodeCommit<\/strong>. \u0422\u0430\u043a \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <strong>SSH Public Key<\/strong>, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 <strong>IAM<\/strong> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 &quot;<strong>Security Credentials<\/strong>&quot; \u0438 \u0441\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u043b\u043e\u043a\u0443 &quot;<strong>SSH keys for AWS CodeCommit<\/strong>&quot;<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1757\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-25-at-14.34.33.png\" alt=\"\" width=\"2192\" height=\"444\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-25-at-14.34.33.png 2192w, https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-25-at-14.34.33-300x61.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-25-at-14.34.33-1024x207.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-25-at-14.34.33-768x156.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-25-at-14.34.33-1536x311.png 1536w, https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-25-at-14.34.33-2048x415.png 2048w, https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-25-at-14.34.33-954x193.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-25-at-14.34.33-1354x274.png 1354w\" sizes=\"(max-width: 2192px) 100vw, 2192px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u0418 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 &quot;<strong>SSH Key ID<\/strong>&quot; \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0430, \u043e\u043d \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 <strong>CodeCommit<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngit clone ssh:\/\/{YOUR_ID_FOR_SSH_KEY}@git-codecommit.us-east-1.amazonaws.com\/v1\/repos\/artem-test\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u041d\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e, \u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <strong>SSH<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvim ~\/.ssh\/config\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nHost git-codecommit.*.amazonaws.com\r\nUser {YOUR_ID_FOR_SSH_KEY}\r\nIdentityFile ~\/.ssh\/id_rsa # path to your private ssh key\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0418 \u0437\u0430\u0434\u0430\u0435\u043c \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nchmod 600 ~\/.ssh\/config\r\n<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 <strong>CodeCommit<\/strong>, \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f &quot;<strong>SSH Key ID<\/strong>&quot;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTTPS \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 Git \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u043c \u0432 CodeCommit \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f AIM \u0440\u043e\u043b\u044c, \u043d\u0430 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d AWS Cli. \u0422\u0430\u043a \u0436\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f &quot;credential-helper&quot;, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f Git&#39;\u0430: &nbsp; \u0418 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: &nbsp; \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 CodeCommit \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTPS \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043d\/\u043f\u0430\u0440\u043e\u043b\u044c. &nbsp; SSH \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b &hellip; <a href=\"https:\/\/artem.services\/?p=1756\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;CodeCommit &#8212; Git&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24],"tags":[25,863,1417,90,147,851],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1756"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1756"}],"version-history":[{"count":3,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1756\/revisions"}],"predecessor-version":[{"id":1760,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1756\/revisions\/1760"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}