This Python project automates the creation and configuration of AWS instances, specifically focusing on Windows servers. It facilitates the setup of security group IDs, retrieves decrypted instance passwords, and gathers information using SMB commands.
- Instance Creation and Configuration: Automate the deployment of AWS instances with custom configurations.
- Security Group Management: Dynamically set up and modify AWS security group IDs.
- Password Retrieval: Automatically retrieve and decrypt Windows server instance passwords.
- SMB Integration: Use SMB commands in Python to collect information from the configured Windows server.
boto3: Used for interacting with the Amazon Web Services (AWS) API.subprocess: Utilized for executing SMB commands within Python.pycrypto: Employed for decryption of AWS instance passwords.
To get started with this project, ensure you have Python installed along with the required libraries:
pip install -r requirements.txtconfigure the .env file with your data
Make sure to allow for inbound and outbound traffic on port 445. To be able to gather information about the shares and so on.
You do not have any instances, will create a new one
EC2 Instance with ID i-yyy has been created.
Created i-yyy
Please wait for 4 minutes before accessing the instance
You will be asked to either choose one of the existing instances or create a new one
You have 1 instance(s) running
Choose one (1 - 1) or create a new instance(N): 1
User chose 1
Will start working on i-yyy
Instance's IP 3.29.18.22
Shares on 3.29.18.22
[yyy, yyy, yyy]
- Ability to modify shares by creating, deleting and updating files/dirs.
- Ability to update/change security groups while the instance is already up and running