<?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>Ssm on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/ssm/</link>
    <description>Recent content in Ssm on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Fri, 05 Jul 2024 22:36:13 +1000</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/ssm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to initiate Session Manager session using CLI</title>
      <link>https://blog.khmersite.net/p/how-to-initiate-session-manager-session-using-cli/</link>
      <pubDate>Fri, 05 Jul 2024 22:36:13 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/how-to-initiate-session-manager-session-using-cli/</guid>
      <description>&lt;p&gt;Tonight I want to connect to an EC2 instance that resides in a private subnet. I currently don&amp;rsquo;t have a bastion host I can use as an
intermediary to jump to this instance. Well, as you might have guessed from this post&amp;rsquo;s title, the AWS Session Manager is something
that might be helpful in this case. So, join me in this journey to configure and set up the Session Manager, using AWS CLI only.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Get connection status for a managed node with AWS CLI</title>
      <link>https://blog.khmersite.net/p/get-connection-status-for-a-managed-node-with-cli/</link>
      <pubDate>Wed, 26 Jun 2024 14:04:44 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/get-connection-status-for-a-managed-node-with-cli/</guid>
      <description>&lt;p&gt;I kept forgetting about the AWS CLI which is quite handy to quickly check if SSM is working on an EC2 instance.&lt;/p&gt;
&lt;p&gt;So here it is again for my future-self. Use &lt;code&gt;get-connection-status&lt;/code&gt; to return the connection status of the specified managed instance.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ aws ssm get-connection-status --target i-092af3b3c1234567

{
  &amp;#34;Status&amp;#34;: &amp;#34;connected&amp;#34;,
  &amp;#34;Target&amp;#34;: &amp;#34;i-092af3b3c1234567&amp;#34;
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Reference:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ssm/get-connection-status.html&#34;&gt;get-connection-status&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Query Latest Debian 12 AMI Id Using AWS SSM Parameter Store</title>
      <link>https://blog.khmersite.net/p/query-latest-debian-ami-id-using-ssm-parameter-store/</link>
      <pubDate>Sat, 05 Aug 2023 00:24:53 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/query-latest-debian-ami-id-using-ssm-parameter-store/</guid>
      <description>&lt;p&gt;Debian publishes their releases of Amazon Machine Image (AMI) for bookworm at &lt;a href=&#34;https://wiki.debian.org/Cloud/AmazonEC2Image/Bookworm&#34;&gt;Debian bookworm on Amazon EC2&lt;/a&gt; [1]. There, you can find the AMIs for various regions and two architecture &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Another way to search for AMI for Debian 12 (bookworm) is to use AWS CLI with &lt;code&gt;describe-images&lt;/code&gt;. Here is an example on how to list the 3 most recent AMIs of Debian 12 (amd64 architecture), sorted by most recent to the oldest:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
