Skip to content

Instantly share code, notes, and snippets.

View AyhanSetirekli's full-sized avatar

Ayhan Setirekli AyhanSetirekli

View GitHub Profile
@AyhanSetirekli
AyhanSetirekli / assume_root_credentials.sh
Last active June 5, 2025 11:56 — forked from sebsto/assume_root_credentials.sh
Assume Root on AWS member accounts
#!/bin/bash
# Check if AWS_ACCOUNT_ID is provided as first argument
if [ -z "$1" ]; then
read -p "Please enter AWS Account ID: " AWS_ACCOUNT_ID
if [ -z "$AWS_ACCOUNT_ID" ]; then
echo "Error: AWS Account ID is required."
exit 1
fi
else