0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Amazon Workspacesの設定をAnsibleで実施する(準備編)

Posted at

はじめに

Amazon Workspaces の設定をIaC化したいので実施しました

バンドルは下記
Standard with Windows 10 and Office 2019 Pro Plus (Server 2019 based)

設定

Chocolateyのインストール

公式サイトに従ってインストール
https://chocolatey.org/install#individual

OpenSSHの導入

WindowsだけどSSHでやったほうが楽だなぁと思ったのでOpenSSHを入れることに

公式に手順がある
https://docs.ansible.com/ansible/latest/os_guide/windows_setup.html#installing-openssh-using-windows-settings

Powershellを管理者で起動して
choco install --package-parameters=/SSHServerFeature openssh

途中で下記メッセージが表示されたら「Y」を入力
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): Y

Security Group 設定

  • Amazon Workspaces のIDをクリックし、「WorkSpace IP」を確認する
  • EC2→ネットワークインターフェイス
  • 「WorkSpace IP」でENIを特定する
  • セキュリティグループを特定する
  • セキュリティグループにAnsible操作元IPの設定をする
  • SSH接続確認 Amazon WorkspacesユーザのID/PASでssh接続できる
    ssh -i アカウント@パブリックIP

memo

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?