{"id":850,"date":"2017-10-13T15:15:13","date_gmt":"2017-10-13T20:15:13","guid":{"rendered":"http:\/\/lopeyland.com\/?p=850"},"modified":"2017-10-13T15:15:13","modified_gmt":"2017-10-13T20:15:13","slug":"aws-ecr-get-login-free-for-all","status":"publish","type":"post","link":"https:\/\/lopeyland.com\/?p=850","title":{"rendered":"aws ecr get-login free for all"},"content":{"rendered":"<p>I do tech stuff, and here&#8217;s a headache for you:<br \/>\nyou have a node that&#8217;s running docker version 17.09-ce. You have a jenkins process that will .ssh to this node, then do some fun stuff like connect to aws to grab images. <\/p>\n<p>First try after setting up credentials and all that: aws ecr get-login . Spits a bunch of stuff out, but when you try to run the resulting command, it bails on the -e email parameter, because that&#8217;s deprecated.<br \/>\nSo you follow the advice and use the &#8211;no-include-email parameter.<br \/>\nAnd that should work.<br \/>\nBut your jenkins job fails. And keeps failing. It hates that &#8211;no-include-email parameter.<br \/>\nTurns out you have to install awscli twice on the local node.<br \/>\nYou have to pip install &#8211;upgrade awscli , then<br \/>\nsudo -H pip install &#8211;upgrade awscli <\/p>\n<p>Why? Who knows? It just doesn&#8217;t work otherwise.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I do tech stuff, and here&#8217;s a headache for you: you have a node that&#8217;s running docker version 17.09-ce. You have a jenkins process that will .ssh to this node, then do some fun stuff like connect to aws to grab images. First try after setting up credentials and all that: aws ecr get-login . &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lopeyland.com\/?p=850\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;aws ecr get-login free for all&#8221;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-850","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/lopeyland.com\/index.php?rest_route=\/wp\/v2\/posts\/850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lopeyland.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lopeyland.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lopeyland.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/lopeyland.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=850"}],"version-history":[{"count":1,"href":"https:\/\/lopeyland.com\/index.php?rest_route=\/wp\/v2\/posts\/850\/revisions"}],"predecessor-version":[{"id":851,"href":"https:\/\/lopeyland.com\/index.php?rest_route=\/wp\/v2\/posts\/850\/revisions\/851"}],"wp:attachment":[{"href":"https:\/\/lopeyland.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lopeyland.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lopeyland.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}