Closed11

Ubuntu の Amazon Linux Workspace を立てる Scrap

sogaohsogaoh

何があるかをリストアップする

https://docs.aws.amazon.com/cli/latest/reference/workspaces/describe-workspace-bundles.html

リストしてみた (絞り込みなし)

❯ AWS_PROFILE=*** aws workspaces describe-workspace-bundles \
    --owner AMAZON \
    --query "Bundles[*].[Name, BundleId]" --output table

---------------------------------------------------------------------------------------------------------------
|                                          DescribeWorkspaceBundles                                           |
+--------------------------------------------------------------------------------------------+----------------+
|  Performance with Windows 7                                                                |  wsb-b0s22j3d7 |
|  Performance with Windows 10 (Server 2019 based) (Japanese)                                |  wsb-j6z7w9tk5 |
|  Standard with Windows 10 (Server 2019 based)                                              |  wsb-gk1wpk43z |
|  Power with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)             |  wsb-2lc8mbdsn |
|  Performance with Windows 7 and Office 2010(Japanese)                                      |  wsb-0m60gspvt |
|  Standard with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                     |  wsb-6vvd8tq1l |
|  PowerPro with Windows 10 (Server 2019 based)                                              |  wsb-bf5th9f2y |
|  Standard with Amazon Linux 2                                                              |  wsb-clj85qzj1 |
|  Performance with Windows 10 (Server 2016 based)                                           |  wsb-gm4d5tx2v |
|  GraphicsPro with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)       |  wsb-jqtl3ms8d |
|  PowerPro with Windows 7                                                                   |  wsb-1pzkp0bx4 |
|  PowerPro with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)          |  wsb-wm34qc877 |
|  Power with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)             |  wsb-4cc39lz4t |
|  Power with Amazon Linux 2                                                                 |  wsb-2bs6k5lgn |
|  Performance with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                  |  wsb-6cdbk8901 |
|  Standard with Windows 10 (Server 2019 based) (Japanese)                                   |  wsb-h90sf22n7 |
|  Value with Windows 10 (Server 2016 based)                                                 |  wsb-bh8rsxt14 |
|  Value with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)             |  wsb-1pwvl14jn |
|  Value with Windows 7                                                                      |  wsb-92tn3b7gx |
|  Power with Windows 10 (Server 2019 based) (Japanese)                                      |  wsb-xhzyys004 |
|  Value with Windows 10 (Server 2019 based) (Japanese)                                      |  wsb-888n86lsq |
|  Performance with Windows 10 (Server 2016 based) (Japanese)                                |  wsb-dk55sygy0 |
|  Performance with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)       |  wsb-w94f3tgkh |
|  Standard with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                     |  wsb-dfyzk6mz7 |
|  Graphics.g4dn with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)     |  wsb-0rz9h7m0m |
|  Standard with Amazon Linux 2(Japanese)                                                    |  wsb-4jx9plphm |
|  Graphics with Windows 7 and Office 2013(Japanese)                                         |  wsb-b0gypb60q |
|  Graphics with Windows 7 and Office 2010                                                   |  wsb-wwx8kkwg5 |
|  Standard with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)          |  wsb-3vw4c37lm |
|  Standard with Windows 7                                                                   |  wsb-3t36q0xfc |
|  Graphics with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                     |  wsb-bm6mf8m4b |
|  Power with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)             |  wsb-x5142w8dw |
|  Performance with Windows 10 (Server 2019 based) (Japanese)                                |  wsb-d05xp3jc8 |
|  PowerPro with Windows 10 (Server 2016 based) (Japanese)                                   |  wsb-88p2c5sr7 |
|  Performance with Amazon Linux 2                                                           |  wsb-j4dky1gs4 |
|  Standard with Ubuntu 22.04 (Japanese)                                                     |  wsb-chjqprhj9 |
|  GraphicsPro.g4dn with Windows 10 and Office 2019 Pro Plus (Server 2019 based)             |  wsb-b4p8q6w2p |
|  Standard with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)          |  wsb-vfk2nwr1h |
|  PowerPro with Windows 10 (Server 2019 based)                                              |  wsb-fx3bdyds8 |
|  Performance with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                  |  wsb-58c9s34pz |
|  Value with Windows 7 and Office 2013(Japanese)                                            |  wsb-6g0zwld0c |
|  Standard with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                     |  wsb-9jvhtb24f |
|  Graphics with Windows 10 (Server 2019 based)                                              |  wsb-03gyjnfyy |
|  PowerPro with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                     |  wsb-kft3y4qsw |
|  Power with Windows 10 (Server 2019 based)                                                 |  wsb-v6727whq5 |
|  Value with Windows 10 (Server 2019 based)                                                 |  wsb-fb2xfp6r8 |
|  Value with Windows 7 and Office 2010(Japanese)                                            |  wsb-bkrfn121f |
|  Performance with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                  |  wsb-05t16yhz8 |
|  GraphicsPro.g4dn with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)  |  wsb-wdxhc0y7w |
|  Graphics with Windows 7 and Office 2013                                                   |  wsb-44r73z5dr |
|  Performance with Windows 7 and Office 2010                                                |  wsb-1b5w6vnz6 |
|  Standard with Windows 10 (Server 2016 based)                                              |  wsb-362t3gdrt |
|  Performance with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)       |  wsb-k2zw1m4vy |
|  Value with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)             |  wsb-9y8cg0q8f |
|  Power with Windows 7 and Office 2013(Japanese)                                            |  wsb-vd5hjbswq |
|  Graphics with Windows 10 (Server 2016 based) (Japanese)                                   |  wsb-dbmqp0m4s |
|  PowerPro with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                     |  wsb-ddkxkghsv |
|  Power with Windows 10 (Server 2016 based) (Japanese)                                      |  wsb-kvbh9vtcb |
|  PowerPro with Windows 7 and Office 2013(Japanese)                                         |  wsb-33th3q8q1 |
|  Value with Ubuntu 22.04 (Japanese)                                                        |  wsb-8ln6rbpq3 |
|  Performance with Ubuntu 22.04                                                             |  wsb-208l8k46h |
|  Power with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)             |  wsb-v0kfnkkv2 |
|  PowerPro with Windows 10 (Server 2016 based)                                              |  wsb-f5g1109b5 |
|  Value with Windows 10 (Server 2016 based)                                                 |  wsb-4qyzfv08r |
|  PowerPro with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                     |  wsb-21f3j0bm3 |
|  PowerPro with Windows 10 (Server 2019 based) (Japanese)                                   |  wsb-xp0hmr72f |
|  Graphics with Windows 10 (Server 2019 based) (Japanese)                                   |  wsb-8f9g65t06 |
|  Graphics.g4dn with Windows 10 (Server 2019 based) (Japanese)                              |  wsb-43rfqvf55 |
|  Performance with Windows 7 and Office 2013(Japanese)                                      |  wsb-7yzqygv89 |
|  GraphicsPro with Windows 10 (Server 2019 based) (Japanese)                                |  wsb-dk51wgx19 |
|  Graphics.g4dn with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                |  wsb-0q379g50g |
|  Power with Windows 10 (Server 2016 based) (Japanese)                                      |  wsb-fd1773pxm |
|  PowerPro with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)          |  wsb-hndykl3r5 |
|  Value with Amazon Linux 2                                                                 |  wsb-8pmj7b7pq |
|  Power with Windows 10 (Server 2019 based)                                                 |  wsb-g72p36ch9 |
|  Value with Ubuntu 22.04                                                                   |  wsb-xnp4cfzht |
|  GraphicsPro.g4dn with Windows 10 (Server 2019 based)                                      |  wsb-jgx0cjr8w |
|  Value with Windows 7(Japanese)                                                            |  wsb-2k4vg5l73 |
|  Power with Windows 10 (Server 2019 based) (Japanese)                                      |  wsb-b278pqng3 |
|  Value with Windows 7 and Office 2013                                                      |  wsb-fgy4lgypc |
|  Performance with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)       |  wsb-g72thwb90 |
|  PowerPro with Ubuntu 22.04                                                                |  wsb-8w32qplfk |
|  Standard with Windows 7(Japanese)                                                         |  wsb-57234qfn3 |
|  Standard with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                     |  wsb-0ng795wdp |
|  Value with Windows 10 (Server 2016 based) (Japanese)                                      |  wsb-5sbs0y26m |
|  Standard with Windows 10 (Server 2019 based) (Japanese)                                   |  wsb-jw00c95ln |
|  Performance with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                  |  wsb-dz4nyn1rx |
|  Value with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                        |  wsb-gh2gdcrcx |
|  Standard with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)          |  wsb-67bwrmxv9 |
|  Performance with Windows 7 and Office 2013                                                |  wsb-vbsjd64y6 |
|  Graphics with Windows 10 (Server 2016 based)                                              |  wsb-320p8vd2j |
|  PowerPro with Windows 10 (Server 2016 based)                                              |  wsb-g0xb96cdv |
|  Value with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)             |  wsb-b27d93m7p |
|  Power with Windows 7(Japanese)                                                            |  wsb-53v5ldggd |
|  Standard with Windows 7 and Office 2013(Japanese)                                         |  wsb-026hrfqls |
|  Graphics with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)          |  wsb-h61z2pq0q |
|  Standard with Windows 10 (Server 2016 based) (Japanese)                                   |  wsb-7dmn3zpyr |
|  Performance with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)       |  wsb-cxx8cvwpz |
|  Power with Amazon Linux 2(Japanese)                                                       |  wsb-xp609rqcs |
|  Value with Windows 7 and Office 2010                                                      |  wsb-kgjp98lt8 |
|  GraphicsPro with Windows 10 (Server 2016 based)                                           |  wsb-g6cjhl60w |
|  Power with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                        |  wsb-6rvsh4gth |
|  Graphics with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                     |  wsb-ftkjdlgks |
|  Graphics with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)          |  wsb-5jths07xj |
|  PowerPro with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)          |  wsb-1mfc8yrsb |
|  Power with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                        |  wsb-hztzqyk3m |
|  GraphicsPro with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                  |  wsb-5rlx0zrt5 |
|  Value with Windows 10 (Server 2019 based)                                                 |  wsb-dv5v4v37h |
|  PowerPro with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)          |  wsb-vqmq0qnc4 |
|  Value with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                        |  wsb-fs32nzsnh |
|  Value with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)             |  wsb-28r6qk5nl |
|  Power with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                        |  wsb-809t6bmvb |
|  Performance with Windows 7(Japanese)                                                      |  wsb-d8q3c2w4l |
|  Standard with Windows 10 (Server 2016 based) (Japanese)                                   |  wsb-0ngbndd5g |
|  Performance with Windows 10 (Server 2019 based)                                           |  wsb-fn373c5rw |
|  PowerPro with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                     |  wsb-j1ckzg142 |
|  Performance with Windows 10 (Server 2016 based) (Japanese)                                |  wsb-8mljdpn1y |
|  Standard with Windows 10 and Office 2019 Pro Plus (Server 2019 based) (Japanese)          |  wsb-2xz3t3z01 |
|  PowerPro with Ubuntu 22.04 (Japanese)                                                     |  wsb-jkdm2f2gk |
|  Performance with Windows 10 (Server 2019 based)                                           |  wsb-55rrhyyg1 |
|  Power with Windows 10 (Server 2016 based)                                                 |  wsb-drh4m5c2r |
|  Value with Amazon Linux 2(Japanese)                                                       |  wsb-3vjdfqs9d |
|  PowerPro with Windows 7 and Office 2013                                                   |  wsb-0h0yf5w9q |
|  Standard with Windows 7 and Office 2010(Japanese)                                         |  wsb-2z41qc52c |
|  Power with Windows 7                                                                      |  wsb-cq3wxw02g |
|  Power with Windows 7 and Office 2013                                                      |  wsb-2gcd1nm07 |
|  Performance with Ubuntu 22.04 (Japanese)                                                  |  wsb-9vmkgyywb |
|  PowerPro with Windows 10 (Server 2016 based) (Japanese)                                   |  wsb-3hq35f30x |
|  Standard with Windows 10 (Server 2016 based)                                              |  wsb-8vbljg4r6 |
|  Power with Windows 10 (Server 2016 based)                                                 |  wsb-w42vs8svd |
|  Performance with Amazon Linux 2(Japanese)                                                 |  wsb-g787l70rm |
|  Value with Windows 10 (Server 2016 based) (Japanese)                                      |  wsb-gwwsvq6xr |
|  Power with Ubuntu 22.04                                                                   |  wsb-397hxf1ww |
|  PowerPro with Amazon Linux 2                                                              |  wsb-b1h39vgz8 |
|  Graphics with Windows 7                                                                   |  wsb-dy4bd5kvl |
|  GraphicsPro with Windows 10 (Server 2016 based) (Japanese)                                |  wsb-gj6w8wzxy |
|  Value with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                        |  wsb-df76rqys9 |
|  Power with Ubuntu 22.04 (Japanese)                                                        |  wsb-gng73xy7f |
|  Standard with Ubuntu 22.04                                                                |  wsb-g5rbnq51n |
|  GraphicsPro with Windows 10 and Office 2016 Pro Plus (Server 2016 based) (Japanese)       |  wsb-bwvt04vhx |
|  Value with Windows 10 (Server 2019 based) (Japanese)                                      |  wsb-2gwlxpxgx |
|  Graphics.g4dn with Windows 10 (Server 2019 based)                                         |  wsb-96qtqtx65 |
|  PowerPro with Windows 10 (Server 2019 based) (Japanese)                                   |  wsb-8z93604pl |
|  Power with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                        |  wsb-64nqp4sgx |
|  GraphicsPro with Windows 10 and Office 2019 Pro Plus (Server 2019 based)                  |  wsb-w44jwvyqy |
|  Graphics with Windows 7 and Office 2010(Japanese)                                         |  wsb-fbd0nl4fl |
|  Standard with Windows 7 and Office 2013                                                   |  wsb-5h1pf1zxc |
|  Graphics with Windows 7(Japanese)                                                         |  wsb-51lz6zqdc |
|  GraphicsPro with Windows 10 (Server 2019 based)                                           |  wsb-3pdhskfyf |
|  GraphicsPro.g4dn with Windows 10 (Server 2019 based) (Japanese)                           |  wsb-7zy4yq6t2 |
|  Standard with Windows 7 and Office 2010                                                   |  wsb-vlsvncjjf |
|  PowerPro with Amazon Linux 2(Japanese)                                                    |  wsb-1wjxykg88 |
|  Performance with Windows 10 (Server 2016 based)                                           |  wsb-b9jc2fhhl |
|  PowerPro with Windows 7(Japanese)                                                         |  wsb-f1j69htzb |
|  Standard with Windows 10 (Server 2019 based)                                              |  wsb-6cbvhvv9f |
|  Value with Windows 10 and Office 2016 Pro Plus (Server 2016 based)                        |  wsb-0zsvgp8fc |
+--------------------------------------------------------------------------------------------+----------------+
多すぎるので絞る
❯ AWS_PROFILE=**** aws workspaces describe-workspace-bundles \
    --owner AMAZON \
    --query "Bundles[*].[Name, BundleId]" \
    --output table > table.txt

❯ cat table.txt| grep "Ubuntu"
|  Standard with Ubuntu 22.04 (Japanese)                                                     |  wsb-chjqprhj9 |
|  Value with Ubuntu 22.04 (Japanese)                                                        |  wsb-8ln6rbpq3 |
|  Performance with Ubuntu 22.04                                                             |  wsb-208l8k46h |
|  Value with Ubuntu 22.04                                                                   |  wsb-xnp4cfzht |
|  PowerPro with Ubuntu 22.04                                                                |  wsb-8w32qplfk |
|  PowerPro with Ubuntu 22.04 (Japanese)                                                     |  wsb-jkdm2f2gk |
|  Performance with Ubuntu 22.04 (Japanese)                                                  |  wsb-9vmkgyywb |
|  Power with Ubuntu 22.04                                                                   |  wsb-397hxf1ww |
|  Power with Ubuntu 22.04 (Japanese)                                                        |  wsb-gng73xy7f |
|  Standard with Ubuntu 22.04                                                                |  wsb-g5rbnq51n |

Standard with Ubuntu 22.04 (Japanese) | wsb-chjqprhj9 |
かな。

と思ったが、無料キャンペーンみたいなので↓にしよう。
Performance with Ubuntu 22.04 (Japanese) | wsb-9vmkgyywb |

sogaohsogaoh

さあどうしよう・・・

sogaohsogaoh

ターミナル立ち上げられたので、さっそくSSHの鍵作ってターミナルでの接続を試みたら成功。
まずは tmux かなと思って入れようとしたらデフォルトで入ってた。

-----------------------------------------------------------------------------
System Restart Required:
    New Security updates require system restart. Please reboot your workspace.
    Auto-restart will be triggered during next maintenance window
    (between 00:00 and 04:00, Sunday Morning)
-----------------------------------------------------------------------------

ってなってるのでとりあえずOS再起動する。
OpenSSL のアレかな、と勝手に思ってる。

sogaohsogaoh

同じ作り方したんだけど Web Access できん、という事態に遭遇した。
謎すぎるので再オープンする・・・

sogaohsogaoh

Web Access を有効にする手順、↓の 3 番目にちょっと違うところがあり、それを乗り越えれば妥当に見れた。
https://docs.aws.amazon.com/ja_jp/workspaces/latest/adminguide/web-access.html#enable-web-access

x 3. 該当するディレクトリを選択し、[Actions]、[Update Details] の順に選択します。
  4.[ アクセスコントロールのオプション] を展開し、[Other Platforms] セクションを検索します。
  5. [Web Access] を選択します。

o 当該 WorkSpaces の ディレクトリ ID のリンクをクリックすると「ディレクトリの詳細」が開く。
 「ディレクトリの詳細」画面にある「他のプラットフォーム」の「編集」をクリックし、
 「Web Access」をチェックONして「保存」
このスクラップは2022/11/13にクローズされました