How to delete AWS Workspace with AWS CLI

When you are finished with a WorkSpace, you can delete it. You can also delete related resources. In this post, I’ll be using AWS CLI to delete a WorkSpace that is no longer needed. To delete a WorkSpace using AWS CLI, we can use terminate-workspaces command [2]. But first, I’d need to find the workspace id. ➜ aws workspaces describe-workspaces --query 'Workspaces[].WorkspaceId' --output text ws-9xm222222 Now that I got the WorkSpace id as ws-9xm222222, I can proceed to terminate this WorkSpace. ...

August 10, 2023 · 3 min · 538 words · kenno

How to stop AWS Workspace with CLI

I need to stop a WorkSpace now and I don’t want to login to AWS WorkSpace console. The following is the steps I’m literally taking to achieve this goal. Find out the WorkSpace ID, assuming that my AWS CLI has been setup correctly. ❯ aws workspaces describe-workspaces { "Workspaces": [ { "WorkspaceId": "ws-9xm222222", "DirectoryId": "d-9767555555", "UserName": "kenno", "IpAddress": "172.xx.x.xx", "State": "AVAILABLE", "BundleId": "wsb-clj855555", "SubnetId": "subnet-0a4ae4b324a799999", "ComputerName": "A-2B99WV33TITAN", "WorkspaceProperties": { "RunningMode": "AUTO_STOP", "RunningModeAutoStopTimeoutInMinutes": 60, "RootVolumeSizeGib": 80, "UserVolumeSizeGib": 50, "ComputeTypeName": "STANDARD", "Protocols": [ "PCOIP" ] }, "ModificationStates": [] } ] } We can see that the WorkSpace ‘ws-9xm222222’ is in AVAILABLE state. To stop this workspace now, run the following command: ❯ aws workspaces stop-workspaces --stop-workspace-requests WorkSpaceId=ws-9xm222222 Parameter validation failed: Unknown parameter in StopWorkspaceRequests[0]: "WorkSpaceId", must be one of: WorkspaceId ❯ aws workspaces stop-workspaces --stop-workspace-requests WorkspaceId=ws-9xm222222 { "FailedRequests": [] } Notice that the CLI option is case sensitive, and I “deliberately” made a mistake with WorkSpaceId to demonstrate this. Hahaha. ...

August 9, 2023 · 2 min · 249 words · kenno

How to delete one word backward in Vim

The following is a sample of text opening in vim/neovim with line numbers: 1 What would be the command to delete one word backwards? 2 I know we can use ‘db’ to delete backword, and it would work 3 as what I wanted if the cursor is on the last character. Assuming that my cursor is under letter ‘a’ of the word ‘command’ in line 1, and I want to delete the whole word ‘command’. How could this be done? ...

August 8, 2023 · 2 min · 322 words · kenno

Query Latest Debian 12 AMI Id Using AWS SSM Parameter Store

Debian publishes their releases of Amazon Machine Image (AMI) for bookworm at Debian bookworm on Amazon EC2 [1]. There, you can find the AMIs for various regions and two architecture amd64 and arm64. Another way to search for AMI for Debian 12 (bookworm) is to use AWS CLI with describe-images. 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: ...

August 5, 2023 · 2 min · 365 words · kenno

Installing Jellyfin Media Player on OpenSUSE Tumbleweed

As of today, Jellyfin Media Player is not available on (official?) repos for OpenSUSE Tumbleweed. To install it, I need to first add a repository, kind of like Fedora Copr, which provides this package. $ sudo zypper addrepo https://download.opensuse.org/repositories/home:playablepliable/openSUSE_Tumbleweed/home:playablepliable.repo [sudo] password for root: Adding repository 'home:playablepliable (openSUSE_Tumbleweed)' ......................................[done] Repository 'home:playablepliable (openSUSE_Tumbleweed)' successfully added URI : https://download.opensuse.org/repositories/home:/playablepliable/openSUSE_Tumbleweed/ Enabled : Yes GPG Check : Yes Autorefresh : No Priority : 99 (default priority) Repository priorities are without effect. All enabled repositories share the same priority. Once the repo was added, the jellyfin-media-player package should be available and can be installed using the following commands: ...

July 29, 2023 · 3 min · 514 words · kenno