blueteamvillage / DC31-obsidian-sec-eng

MIT License
1 stars 0 forks source link

Ec2 imager script #175

Open CptOfEvilMinions opened 9 months ago

CptOfEvilMinions commented 9 months ago

Background

A Terraform and BASH script combo that images EC2 volumes into forensic images with dd. The terraform script will convert any snapshots with specified tags to EC2 volumes. Next, the terraform script will take care of creating the appropriate amount of ec2 images to mount all the volumes.

At this time, it's a manual process to copy the BASH script to EC2 hosts and start the process. Once the process has been started it will do all the processing needed, shut down the EC2 instance, and instance will self-terminate.

Type of change

Please delete options that are not relevant.

Changes

modified:   scripts/ec2-imager.tf
modified:   scripts/imager.sh

Testing


Ansible doc check........................................................Passed
➜  DC31-obsidian-sec-eng git:(ec2-imager-script) ✗ git add .
➜  DC31-obsidian-sec-eng git:(ec2-imager-script) ✗ git commit -m "UPdates"
check python ast.....................................(no files to check)Skipped
check json...........................................(no files to check)Skipped
check that scripts with shebangs are executable..........................Passed
check for merge conflicts................................................Passed
check for broken symlinks............................(no files to check)Skipped
check toml...........................................(no files to check)Skipped
check xml............................................(no files to check)Skipped
detect aws credentials...................................................Passed
detect private key.......................................................Passed
check yaml...........................................(no files to check)Skipped
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
check for added large files..............................................Passed
check docstring is first.............................(no files to check)Skipped
fix requirements.txt.................................(no files to check)Skipped
black................................................(no files to check)Skipped
flake8...............................................(no files to check)Skipped
pylint...............................................(no files to check)Skipped