<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Isabelle Wagenvoord</title>
    <description>The latest articles on Forem by Isabelle Wagenvoord (@isabellewagenvoord).</description>
    <link>https://forem.com/isabellewagenvoord</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F315575%2F4775e46d-b2c3-4601-8c73-93f6dc947c48.jpg</url>
      <title>Forem: Isabelle Wagenvoord</title>
      <link>https://forem.com/isabellewagenvoord</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/isabellewagenvoord"/>
    <language>en</language>
    <item>
      <title>Register your Raspberry Pi as a Managed Instance on AWS</title>
      <dc:creator>Isabelle Wagenvoord</dc:creator>
      <pubDate>Sun, 12 Jan 2020 19:14:53 +0000</pubDate>
      <link>https://forem.com/isabellewagenvoord/register-your-raspberry-pi-as-a-managed-instance-on-aws-5bh5</link>
      <guid>https://forem.com/isabellewagenvoord/register-your-raspberry-pi-as-a-managed-instance-on-aws-5bh5</guid>
      <description>&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Access to a Raspberry Pi&lt;/li&gt;
&lt;li&gt;An AWS account&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Contents
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Create a Managed Instance Activation&lt;/li&gt;
&lt;li&gt;Install SSM Agent on your Raspberry Pi&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Create a Managed Instance Activation
&lt;/h2&gt;

&lt;p&gt;Log into the AWS online console. Navigate to the Systems Manager console by clicking on 'Services' and searching for 'systems manager'. The console should look similar to this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FzdASCcq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/tmqy8me1yspy44p1cnp8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FzdASCcq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/tmqy8me1yspy44p1cnp8.png" alt="Systems Manager Console"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the left sidebar, scroll under Instances and Nodes and click on &lt;strong&gt;Hybrid Activations&lt;/strong&gt;. Click &lt;strong&gt;Create an Activation&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In the 'Create Activation' page, fill out the following fields:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instance Limit&lt;/strong&gt; - The number of Rasberry Pies you want to register using this particular activation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IAM Role&lt;/strong&gt; - Use default role&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Activation Expiry Date&lt;/strong&gt; - Any expiration date in the future. If you want to register more devices after the activation has expired, you will need to create a new activation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Default Instance Name&lt;/strong&gt; - Raspberry Pi&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hx8Ga1j0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ahe4iu3hsmdgt8uxgwpr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hx8Ga1j0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ahe4iu3hsmdgt8uxgwpr.png" alt="Create activation page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click 'Create activation'. When you are redirected to the Activations page, &lt;strong&gt;record the Activation Code and Activation ID&lt;/strong&gt; that is provided to you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_HnWtaA7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/7nwxie18qczpig9op644.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_HnWtaA7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/7nwxie18qczpig9op644.png" alt="Activation code and activation id"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Install SSM Agent
&lt;/h2&gt;

&lt;p&gt;Make sure your Raspberry Pi is up to date:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get update
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get upgrade
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Install Amazon SSM Agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;curl https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_arm/amazon-ssm-agent.deb &lt;span class="nt"&gt;-o&lt;/span&gt; amazon-ssm-agent.deb
&lt;span class="nb"&gt;sudo &lt;/span&gt;dpkg &lt;span class="nt"&gt;-i&lt;/span&gt; amazon-ssm-agent.deb
&lt;span class="c"&gt;# remove amazon-ssm-agent.deb once package is installed&lt;/span&gt;
&lt;span class="nb"&gt;rm &lt;/span&gt;amazon-ssm-agent.deb
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Register your Raspberry Pi as a managed instance!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;service amazon-ssm-agent stop
&lt;span class="nb"&gt;sudo &lt;/span&gt;amazon-ssm-agent &lt;span class="nt"&gt;-register&lt;/span&gt; &lt;span class="nt"&gt;-code&lt;/span&gt; &lt;span class="s2"&gt;"activation-code"&lt;/span&gt; &lt;span class="nt"&gt;-id&lt;/span&gt; &lt;span class="s2"&gt;"activation-id"&lt;/span&gt; &lt;span class="nt"&gt;-region&lt;/span&gt; &lt;span class="s2"&gt;"region"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Replace &lt;em&gt;activation-code&lt;/em&gt; and &lt;em&gt;activation-id&lt;/em&gt; with the activation code and id you recorded earlier. Replace &lt;em&gt;region&lt;/em&gt; with a region name, such as &lt;code&gt;us-east-1&lt;/code&gt;. Start amazon-ssm-agent again so it can communicate with AWS.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;service amazon-ssm-agent start
&lt;span class="c"&gt;# You may find yourself stuck in the logs that follow once you &lt;/span&gt;
&lt;span class="c"&gt;# run this command. Ctrl + C will get you out of this,&lt;/span&gt;
&lt;span class="c"&gt;# and won't close your pi's connection to AWS.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Return to the AWS Systems Manager console. In the sidebar, navigate to &lt;strong&gt;Managed Instances&lt;/strong&gt;. You should now see your Raspberry Pi registered as a managed instance!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jVzxvtvM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/rbys4l7f7glxe8fkaskg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jVzxvtvM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/rbys4l7f7glxe8fkaskg.png" alt="Raspberry Pi registered as a managed instance in console"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>raspberrypi</category>
    </item>
  </channel>
</rss>
