<?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>Stop-Workspaces on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/stop-workspaces/</link>
    <description>Recent content in Stop-Workspaces 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>Wed, 09 Aug 2023 18:45:01 +1000</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/stop-workspaces/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to stop AWS Workspace with CLI</title>
      <link>https://blog.khmersite.net/p/how-to-stop-aws-workspace-with-cli/</link>
      <pubDate>Wed, 09 Aug 2023 18:45:01 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/how-to-stop-aws-workspace-with-cli/</guid>
      <description>&lt;p&gt;I need to stop a WorkSpace now and I don&amp;rsquo;t want to login to AWS WorkSpace console.&lt;/p&gt;
&lt;p&gt;The following is the steps I&amp;rsquo;m literally taking to achieve this goal.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Find out the WorkSpace ID, assuming that my AWS CLI has been setup correctly.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;❯ aws workspaces describe-workspaces
{
    &amp;#34;Workspaces&amp;#34;: [
        {
            &amp;#34;WorkspaceId&amp;#34;: &amp;#34;ws-9xm222222&amp;#34;,
            &amp;#34;DirectoryId&amp;#34;: &amp;#34;d-9767555555&amp;#34;,
            &amp;#34;UserName&amp;#34;: &amp;#34;kenno&amp;#34;,
            &amp;#34;IpAddress&amp;#34;: &amp;#34;172.xx.x.xx&amp;#34;,
            &amp;#34;State&amp;#34;: &amp;#34;AVAILABLE&amp;#34;,
            &amp;#34;BundleId&amp;#34;: &amp;#34;wsb-clj855555&amp;#34;,
            &amp;#34;SubnetId&amp;#34;: &amp;#34;subnet-0a4ae4b324a799999&amp;#34;,
            &amp;#34;ComputerName&amp;#34;: &amp;#34;A-2B99WV33TITAN&amp;#34;,
            &amp;#34;WorkspaceProperties&amp;#34;: {
                &amp;#34;RunningMode&amp;#34;: &amp;#34;AUTO_STOP&amp;#34;,
                &amp;#34;RunningModeAutoStopTimeoutInMinutes&amp;#34;: 60,
                &amp;#34;RootVolumeSizeGib&amp;#34;: 80,
                &amp;#34;UserVolumeSizeGib&amp;#34;: 50,
                &amp;#34;ComputeTypeName&amp;#34;: &amp;#34;STANDARD&amp;#34;,
                &amp;#34;Protocols&amp;#34;: [
                    &amp;#34;PCOIP&amp;#34;
                ]
            },
            &amp;#34;ModificationStates&amp;#34;: []
        }
    ]
}
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;We can see that the WorkSpace &amp;lsquo;ws-9xm222222&amp;rsquo; is in AVAILABLE state. To stop this workspace now, run the following command:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;❯ aws workspaces stop-workspaces --stop-workspace-requests WorkSpaceId=ws-9xm222222

Parameter validation failed:
Unknown parameter in StopWorkspaceRequests[0]: &amp;#34;WorkSpaceId&amp;#34;, must be one of: WorkspaceId

❯ aws workspaces stop-workspaces --stop-workspace-requests WorkspaceId=ws-9xm222222
{
    &amp;#34;FailedRequests&amp;#34;: []
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Notice that the CLI option is case sensitive, and I &amp;ldquo;deliberately&amp;rdquo; made a mistake with &lt;code&gt;WorkSpaceId&lt;/code&gt; to demonstrate this. Hahaha.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
