Skip to content

Commit c109890

Browse files
committed
Add Guard Duty Script
A small script to enable guard duty in all regions.
1 parent ba66f32 commit c109890

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

GuardDuty/enable.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
#Enable GuardDuty In All Regions.
3+
for region in $(aws ec2 describe-regions --output text | cut -f3)
4+
do
5+
aws guardduty --region "$region" create-detector
6+
done

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ You will need the [AWS-CLI](https://aws.amazon.com/cli/) installed and configure
2222

2323
**_EC2/SecurityGroups/removessh.sh_**: Removes rules allowing SSH access from your current public IP address.
2424

25+
**_GuardDuty/enale.sh_**: Enables GuardDuty in all avalbile regions.
26+
2527
## Important Notice
2628
*I likely dont know what I am doing and this could be done faster, better and simpler some other way. These scripts could also break your cloud and make you cry.*

0 commit comments

Comments
 (0)