- AWS上にAD×2,Clientを構築
- terraformを使用
![構成図](https://github.com/raw/kmd2kmd/iw-ad001/master/images/diagram.png)
export AWS_ACCESS_KEY_ID=accesskey
export AWS_SECRET_ACCESS_KEY=secretkey
git clone https://github.com/kmd2kmd/iw-ad001
cd iw-ad001
bash keygen.bash
mv varibales.tf.sample varibales.tf
vi varibales.tf # 必要箇所を記載
terraform init
terraform plan
terraform apply
ssh -fNC -L 13389:10.0.10.11:3389 -i ./iw-ad001 ec2-user@[[ad01IPaddr]]
ssh -fNC -L 23389:10.0.10.12:3389 -i ./iw-ad001 ec2-user@[[ad02IPaddr]]
ssh -fNC -L 33389:10.0.10.13:3389 -i ./iw-ad001 ec2-user@[[client01IPaddr]]