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 git@github.com:amswiatkowski/windows-ec2-cdk.git
- Install dependencies
poetry install
- Deploy the project
./deploy.sh
- Open created
client_ec2_connection.rdpfile and connect to the EC2. Use the password from the console's output.
./lint.shFixes indents and checks your code quality./destroy.sh --region us-east-1Triggers cdk destroy./deploy/sh --region us-east-1Deploys stack to the AWS accountpytest -vv ./testsRun tests
Adam Świątkowski
Copyright © 2024, Adam Świątkowski. Released under the MIT License.