Skip to content

Instantly share code, notes, and snippets.

View marcinguy's full-sized avatar

Marcin Kozlowski marcinguy

  • Berlin, Germany
View GitHub Profile
@mauricioklein
mauricioklein / check-ebs-snapshots.sh
Created August 11, 2019 09:11
Script to check EBS snapshots vulnerability
#!/bin/bash
#
# RUN:
# AWS_PROFILE=[profile] AWS_REGION=[region] ./check-ebs-snapshots.sh
#
AWS_ACCOUNT_ID=$(aws sts get-caller-identity --output text --query 'Account')
snapshots=$(aws ec2 describe-snapshots \