<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Aws on Dans homepage</title>
    <link>https://blog.oconnordaniel.com/tags/aws/</link>
    <description>Recent content in Aws on Dans homepage</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 05 Mar 2023 10:00:00 -0600</lastBuildDate>
    <atom:link href="https://blog.oconnordaniel.com/tags/aws/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Elastic Container</title>
      <link>https://blog.oconnordaniel.com/blog/ecs/</link>
      <pubDate>Sun, 05 Mar 2023 10:00:00 -0600</pubDate>
      <guid>https://blog.oconnordaniel.com/blog/ecs/</guid>
      <description>&lt;p&gt;So single EC2 instance is cool and all. But this is the cloud. So dispite that I have routly 3 visitors to my site (and one is probably a bot), let&amp;rsquo;s setup the infrastructure to scale.&lt;/p&gt;&#xA;&lt;p&gt;Step one is to build and upload my docker container to ECR. (this does mean I&amp;rsquo;ll have to change all my ansible plays)&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin &lt;span style=&#34;color:#f92672&#34;&gt;{{&lt;/span&gt; account-id &lt;span style=&#34;color:#f92672&#34;&gt;}}&lt;/span&gt;.dkr.ecr.us-west-2.amazonaws.com&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker build -t dans-homepage .&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker tag dans-homepage:latest &lt;span style=&#34;color:#f92672&#34;&gt;{{&lt;/span&gt; account-id &lt;span style=&#34;color:#f92672&#34;&gt;}}&lt;/span&gt;.dkr.ecr.us-west-2.amazonaws.com/dans-homepage:latest&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker push &lt;span style=&#34;color:#f92672&#34;&gt;{{&lt;/span&gt; account-id &lt;span style=&#34;color:#f92672&#34;&gt;}}&lt;/span&gt;.dkr.ecr.us-west-2.amazonaws.com/dans-homepage:latest&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Step two is to create a cluster to hold everything&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
