{"id":15333,"date":"2023-03-10T16:23:36","date_gmt":"2023-03-10T15:23:36","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=15333"},"modified":"2023-03-10T16:39:06","modified_gmt":"2023-03-10T15:39:06","slug":"install-and-configure-aws-cli","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/install-and-configure-aws-cli\/","title":{"rendered":"Installing and Configuring AWS CLI on Your Server"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI.jpg\" alt=\"Installing and Configuring AWS CLI on Your Server (head)\" class=\"wp-image-15334\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI.jpg 1200w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI-600x315.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI-768x403.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Even though <a href=\"https:\/\/en.wikipedia.org\/wiki\/Amazon_Web_Services\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Amazon Web Services<\/a> (AWS) is our competitor on cloud instances and object storage market, they have introduced a set of useful tools which became industry standards.&nbsp; AWS Command Line Interface (CLI) is one of them. It is a powerful tool that allows users to interact with cloud services using the command line. Installing and configuring the AWS CLI on your server is a crucial step towards managing your cloud resources, such as object storage, efficiently. In this article, we will guide you through the process of installing and configuring the AWS CLI on your server.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-installing-aws-cli\"><strong>Installing AWS CLI<\/strong><\/h2>\n\n\n\n<p>Installing AWS on your Linux server is the easiest thing you can do. It\u2019s just one single command, namely this one:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install awscli \u2013y<\/code><\/pre>\n\n\n\n<p><em>Information:<\/em> Some guides say that you need to install Python and certain python-modules before installing AWS CLI. We\u2019ve tested it on Debian 10 and the command we provided earlier automatically installs all required packages and modules (such as Python3 etc.)&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-configuring-aws-cli\"><strong>Configuring AWS CLI<\/strong><\/h2>\n\n\n\n<p>Now we will configure AWS CLI in a way that you can use it with an S3-compatible Object Storage, for example to upload or delete files.&nbsp;Contabo offers such an S3-compatible Object Storage starting at $2.39 \/ Month. Check it out <a href=\"https:\/\/contabo.com\/en\/object-storage\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<p>In order to configure AWS CLI, you need the following information from your Object Storage provider:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Your Access Key&nbsp;<\/li>\n\n\n\n<li>Your Secret Key&nbsp;<\/li>\n\n\n\n<li>Your S3 URL&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>To start with the configuration, use this command:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aws configure --profile eu2<\/code><\/pre>\n\n\n\n<p>(\u201ceu2\u201d is the name of the of this profile. Use a different one if you want)&nbsp;<\/p>\n\n\n\n<p>Now enter your Access Key and press enter and enter your Secret Key.&nbsp;<\/p>\n\n\n\n<p>Skip the \u201cDefault region name\u201d and the \u201cDefault output format\u201d by just pressing enter.&nbsp;<\/p>\n\n\n\n<p><strong>Congrats!<\/strong> You\u2019ve successfully installed and configured AWS CLI on your server.&nbsp;<\/p>\n\n\n\n<p>More information about AWS CLI and how to use it with Contabo Object Storage can be found in our official documentation <a href=\"https:\/\/docs.contabo.com\/docs\/products\/Object-Storage\/Tools\/aws-cli\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS CLI is a powerful tool that allows users to interact with cloud services using the command line. Learn how to install and configure it.<\/p>\n","protected":false},"author":50,"featured_media":15334,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","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":"","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-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":"","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-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":"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":""},"mobile":{"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":""}},"footnotes":""},"categories":[18],"tags":[],"ppma_author":[1491],"class_list":["post-15333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"uagb_featured_image_src":{"full":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI.jpg",1200,630,false],"thumbnail":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI-150x150.jpg",150,150,true],"medium":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI-600x315.jpg",600,315,true],"medium_large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI-768x403.jpg",768,403,true],"large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI.jpg",1200,630,false],"1536x1536":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI.jpg",1200,630,false],"2048x2048":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/03\/blog-head_1200x630_installing-and-configuring-AWS-CLI.jpg",1200,630,false]},"uagb_author_info":{"display_name":"Tobias Mildenberger","author_link":"https:\/\/contabo.com\/blog\/author\/tobias\/"},"uagb_comment_info":0,"uagb_excerpt":"AWS CLI is a powerful tool that allows users to interact with cloud services using the command line. Learn how to install and configure it.","authors":[{"term_id":1491,"user_id":50,"is_guest":0,"slug":"tobias","display_name":"Tobias Mildenberger","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/077178d5dce6c3d4c0c0396857a7e544bfdf8adf04145fff5160b33a22e28b1f?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/15333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=15333"}],"version-history":[{"count":0,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/15333\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media\/15334"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=15333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=15333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=15333"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=15333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}