This is a simple project showing how to create a Windows EC2 machine, with ready to connect RDP. Project is a complete solution which after deployment provides for us preconfigured .rdp file to connect to our EC2. It also extracts Admin password from EC2 so it can be used to login to the machine. Main goal for this project was a possibility to not use AWS console in any phase and deploy everything from the code.
- AWS CDK CLI
- AWS CLI
- node.js
- Python 3.12
- Poetry
- RDP client
- Clone the repo
git clone [email protected]:amswiatkowski/windows-ec2-cdk.git
- Install dependencies
poetry install
- Deploy the project
./deploy.sh
- Open created
client_ec2_connection.rdp
file and connect to the EC2. Use the password from the console's output.
./lint.sh
Fixes indents and checks your code quality./destroy.sh --region us-east-1
Triggers cdk destroy./deploy/sh --region us-east-1
Deploys stack to the AWS accountpytest -vv ./tests
Run tests
Adam Świątkowski
Copyright © 2024, Adam Świątkowski. Released under the MIT License.