{"id":7263,"date":"2023-06-18T16:02:42","date_gmt":"2023-06-18T10:32:42","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7263"},"modified":"2023-06-18T16:02:45","modified_gmt":"2023-06-18T10:32:45","slug":"how-to-install-aws-cli-and-configure-access-key-in-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-aws-cli-and-configure-access-key-in-ubuntu-20-04\/","title":{"rendered":"How to install AWS cli and configure access key in Ubuntu 20.04\u00a0"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Introduction:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><\/strong>In this section we are going to see how to install AWS cli tool and configure access key in Ubuntu 20.04 in a vps.<br><br><strong>Prerequisites:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Server root login credentials<\/li>\n\n\n\n<li>AWS access key and secret key<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Procedure:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1: Update the current apt repository<br><br>$ sudo apt update<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Download the latest version of AWS cli tool<br><br>$ curl &#8220;https:\/\/awscli.amazonaws.com\/awscli-exe-linux-x86_64.zip&#8221; -o &#8220;awscliv2.zip&#8221;<br><br>Step 3: Now unzip the installer<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ unzip awscliv2.zip<br><br>Step 4: Now run the install command to install on the server<br><br>$ sudo .\/aws\/install<br><br>This will install the AWS cli on the server<br><br>Step 5: To check this tool installed run the following command<br><br>$ aws &#8211;version<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-203913.png\"><img decoding=\"async\" width=\"1024\" height=\"45\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-203913-1024x45.png\" alt=\"\" class=\"wp-image-7264\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-203913-1024x45.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-203913-300x13.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-203913-768x34.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-203913-850x37.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-203913.png 1343w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 6: Now configure your AWS access keys in the server<br><br>$ aws configure<br><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204046.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"987\" height=\"99\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204046.png\" alt=\"\" class=\"wp-image-7265\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204046.png 987w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204046-300x30.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204046-768x77.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204046-850x85.png 850w\" sizes=\"(max-width: 987px) 100vw, 987px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the access key and secret key and click enter. Now your AWS keys are configure on this server.<br><br>Step 7: To check this run the following command.<br><br>$\u00a0 aws sts get-caller-identity<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204318-1.png\"><img decoding=\"async\" width=\"892\" height=\"166\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204318-1.png\" alt=\"\" class=\"wp-image-7267\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204318-1.png 892w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204318-1-300x56.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204318-1-768x143.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-16-204318-1-850x158.png 850w\" sizes=\"(max-width: 892px) 100vw, 892px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>Conclusion:<br><br><\/strong>Now the server is successfully Installed and configured with AWS cli tool by following the above mentioned steps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: In this section we are going to see how to install AWS cli tool and configure access key in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[],"class_list":["post-7263","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1T9","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7263"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7263\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}