This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Arguments: APP_ID INSTALLATION_ID KEY_PATH | |
APP_ID="${1:-}" | |
INSTALLATION_ID="${2:-}" | |
KEY_PATH="${3:-}" | |
if [[ -z "$APP_ID" || -z "$INSTALLATION_ID" || -z "$KEY_PATH" ]]; then | |
echo "Usage: $0 APP_ID INSTALLATION_ID KEY_PATH" | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""script to restore deleted objects of a AWS bucket | |
""" | |
import argparse | |
import json | |
import os | |
import subprocess as s | |
import tempfile | |