<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>aws cli Archives | Cloudar</title>
	<atom:link href="https://cloudar.be/tag/aws-cli/feed/" rel="self" type="application/rss+xml" />
	<link>https://cloudar.be/tag/aws-cli/</link>
	<description>100% Focus On AWS // 100% Customer Obsession</description>
	<lastBuildDate>Sat, 16 Nov 2019 15:23:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>$ aws help # things you might not know about the AWS CLI</title>
		<link>https://cloudar.be/awsblog/aws-help-things-you-might-not-know-about-the-aws-cli/</link>
		
		<dc:creator><![CDATA[Ben Bridts]]></dc:creator>
		<pubDate>Sat, 16 Nov 2019 15:23:39 +0000</pubDate>
				<category><![CDATA[AWS Blog]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[aws cli]]></category>
		<guid isPermaLink="false">https://www.cloudar.be/?p=16399</guid>

					<description><![CDATA[<p>I recently gave a presentation at The AWS Community Summit in London, where I tried to talk about as many cool features of the AWS CLI as I could in 10 minutes. That recording is now available and you can watch it here (the slides can be found online too). Video isn&#8217;t the best reference [&#8230;]</p>
<p>The post <a href="https://cloudar.be/awsblog/aws-help-things-you-might-not-know-about-the-aws-cli/">$ aws help # things you might not know about the AWS CLI</a> appeared first on <a href="https://cloudar.be">Cloudar</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I recently gave a presentation at <a href="https://www.comsum.co.uk/">The AWS Community Summit in London</a>, where I tried to talk about as many cool features of the AWS CLI as I could in 10 minutes. <a href="https://www.youtube.com/watch?v=1tl-J_lbKso">That recording is now available and you can watch it here</a> (<a href="https://speakerdeck.com/benbridts/aws-help-number-things-you-might-not-know-about-the-aws-cli-5d0a25fb-bf79-4ff7-82f0-31cfcb06607b">the slides can be found online too</a>).</p>
<p>Video isn&#8217;t the best reference material if you want to quickly find one of those tips, so I will add a quick summary of them in this blogpost.</p>
<ul>
<li>By specifying <code class="" data-line="">source_profile</code> in your <code class="" data-line="">.aws/config</code> file, you can tell the AWS CLI to use credentials from one profile to assume the <code class="" data-line="">role_arn</code> you configure in another profile. This also works in a chain of profiles and can include asking for an MFA token.</li>
<li>You don&#8217;t have to get credentials from the <code class="" data-line="">.aws/credentials</code> file, you can tell the CLI to get them from environment variables (this also works if you do not specify anything), instance metadata, or the ECS container role.</li>
<li>There is a <code class="" data-line="">--debug</code> flag, which gives you a lot of output to see everything that&#8217;s happening behind the scenes.</li>
<li>In most cases you do not want that full debug output. <a href="https://docs.aws.amazon.com/cli/latest/reference/history/index.html">Enabling history and using <code class="" data-line="">aws history show</code></a> will give you the most relevant parts in an easy to read format.</li>
<li>The CLI has the annoying habit of resolving all urls you give it. You can disable this with <code class="" data-line="">aws configure set cli_follow_urlparam false</code>.</li>
<li>You can make S3 uploads and downloads go a lot faster by tweaking the <code class="" data-line="">max_concurrent_requests</code>. Or make it not exceed a certain speed with <code class="" data-line="">max_bandwith</code>. <a href="https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#cli-aws-help-s3-config">See here for all options</a>.</li>
<li>The cli supports defining your own aliases. Look in <a href="https://github.com/awslabs/awscli-aliases">this awslabs repository</a> for examples.</li>
<li>Instead of relying on an external tool (that needs to be installed), you can get specific fields from the response by using <code class="" data-line="">--query</code>. Combine this with <code class="" data-line="">--output text</code> to strip json-specific syntax.</li>
<li>You can use completion in different shells.</li>
<li>There are waiters you can use directly from the command line, so you do not have to write your own check-sleep loops in bash.</li>
<li>Other useful cli tools include <a href="https://github.com/aws-cloudformation/cfn-python-lint">cfn-lint</a>, <a href="https://github.com/aws/aws-encryption-sdk-cli/">aws-encryption-sdk</a>, <a href="https://github.com/awslabs/aws-shell">aws-shell</a> and <a href="https://github.com/99designs/aws-vault">aws-vault</a></li>
<li><a href="https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html">There is a version 2 coming</a>.</li>
</ul>
<p>The post <a href="https://cloudar.be/awsblog/aws-help-things-you-might-not-know-about-the-aws-cli/">$ aws help # things you might not know about the AWS CLI</a> appeared first on <a href="https://cloudar.be">Cloudar</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
