<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Aws on Pavan Yara</title><link>https://pavanyara.com/tags/aws/</link><description>Recent content in Aws on Pavan Yara</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><managingEditor>pavan.yara@gmail.com (Pavan Yara)</managingEditor><webMaster>pavan.yara@gmail.com (Pavan Yara)</webMaster><copyright>Pavan Yara</copyright><lastBuildDate>Wed, 18 Dec 2019 10:37:41 +0530</lastBuildDate><atom:link href="https://pavanyara.com/tags/aws/index.xml" rel="self" type="application/rss+xml"/><item><title>Some AWS EC2 Tips</title><link>https://pavanyara.com/blog/ec2-tips-1/</link><pubDate>Wed, 18 Dec 2019 10:37:41 +0530</pubDate><author>pavan.yara@gmail.com (Pavan Yara)</author><guid>https://pavanyara.com/blog/ec2-tips-1/</guid><description>&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Choosing right instance size&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="https://pavanyara.com/img/ec2.png" alt="Choosing Right Ec2 instance size"&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Why is my Linux instance not booting after I changed its type to C5 or&#10;M5?&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;See &lt;a href="https://aws.amazon.com/premiumsupport/knowledge-center/boot-error-linux-m5-c5/"&gt;https://aws.amazon.com/premiumsupport/knowledge-center/boot-error-linux-m5-c5/&lt;/a&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Make sure enaSupport instance attribute is enabled&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;aws ec2 describe-instances &amp;ndash;instance-ids instance_id &amp;ndash;query &amp;ldquo;Reservations[].Instances[].EnaSupport“&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Make sure both ENA and NVMe modules are installed&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;modinfo ena&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;lsinitrd /boot/initramfs-$(uname -r).img|grep nvme&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Mount EBS volumes using UUID/Label instead of device name&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;/dev/sda1 -&amp;gt; UUID=&amp;ldquo;ca774df7-756d-4261-a3f1-76038323e572&amp;rdquo;&lt;/p&gt;&#10;&lt;/blockquote&gt;</description><content:encoded><![CDATA[<ul>
<li><strong>Choosing right instance size</strong></li>
</ul>
<p><img src="/img/ec2.png" alt="Choosing Right Ec2 instance size"></p>
<ul>
<li><strong>Why is my Linux instance not booting after I changed its type to C5 or
M5?</strong></li>
</ul>
<p>See <a href="https://aws.amazon.com/premiumsupport/knowledge-center/boot-error-linux-m5-c5/">https://aws.amazon.com/premiumsupport/knowledge-center/boot-error-linux-m5-c5/</a></p>
<ul>
<li><strong>Make sure enaSupport instance attribute is enabled</strong></li>
</ul>
<blockquote>
<p>aws ec2 describe-instances &ndash;instance-ids instance_id &ndash;query &ldquo;Reservations[].Instances[].EnaSupport“</p>
</blockquote>
<ul>
<li><strong>Make sure both ENA and NVMe modules are installed</strong></li>
</ul>
<blockquote>
<p>modinfo ena</p>
</blockquote>
<blockquote>
<p>lsinitrd /boot/initramfs-$(uname -r).img|grep nvme</p>
</blockquote>
<ul>
<li><strong>Mount EBS volumes using UUID/Label instead of device name</strong></li>
</ul>
<blockquote>
<p>/dev/sda1 -&gt; UUID=&ldquo;ca774df7-756d-4261-a3f1-76038323e572&rdquo;</p>
</blockquote>
]]></content:encoded></item><item><title>Using Custom Domains with AWS API Gateway</title><link>https://pavanyara.com/blog/api-gateway-custom-domain/</link><pubDate>Wed, 13 Jun 2018 14:43:45 +0530</pubDate><author>pavan.yara@gmail.com (Pavan Yara)</author><guid>https://pavanyara.com/blog/api-gateway-custom-domain/</guid><description>&lt;p&gt;From a Stackoverflow post:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Generate an origin certificate from the crypto tab of the Cloudflare dashboard.&lt;/li&gt;&#10;&lt;li&gt;Import the certificate to AWS Certificate manager in the us-east-1 region, even if your API is located in a different region. If you are prompted for the certificate chain you can copy it from here.&lt;/li&gt;&#10;&lt;li&gt;Add your custom domain in the API Gateway console and select the certificate you just added. Check the AWS support article for more information on how to do this.&#10;It usually takes about 45 minutes for the custom domain to finish initializing. Once it&amp;rsquo;s done it will give you a new Cloudfront URL. Go ahead and make sure your API still works through this new URL.&lt;/li&gt;&#10;&lt;li&gt;Go to the Cloudflare DNS tab and setup a CNAME record pointing to Cloudfront URL you just created.&lt;/li&gt;&#10;&lt;li&gt;Switch to the crypto tab and set your SSL mode to &amp;ldquo;Full (Strict)&amp;rdquo;. If you skip this step you&amp;rsquo;ll get a redirect loop.&lt;/li&gt;&#10;&lt;/ol&gt;</description><content:encoded><![CDATA[<p>From a Stackoverflow post:</p>
<ol>
<li>Generate an origin certificate from the crypto tab of the Cloudflare dashboard.</li>
<li>Import the certificate to AWS Certificate manager in the us-east-1 region, even if your API is located in a different region. If you are prompted for the certificate chain you can copy it from here.</li>
<li>Add your custom domain in the API Gateway console and select the certificate you just added. Check the AWS support article for more information on how to do this.
It usually takes about 45 minutes for the custom domain to finish initializing. Once it&rsquo;s done it will give you a new Cloudfront URL. Go ahead and make sure your API still works through this new URL.</li>
<li>Go to the Cloudflare DNS tab and setup a CNAME record pointing to Cloudfront URL you just created.</li>
<li>Switch to the crypto tab and set your SSL mode to &ldquo;Full (Strict)&rdquo;. If you skip this step you&rsquo;ll get a redirect loop.</li>
</ol>
]]></content:encoded></item></channel></rss>