Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
ROLE_NAME="DatadogIntegrationRole"
TEMP=$(mktemp)
aws iam get-role --role-name DatadogIntegrationRole | jq '.Role.AssumeRolePolicyDocument' > "${TEMP}"
cat "${TEMP}"
#!/bin/bash
set -ex
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
FILE="${1:-${BASH_SOURCE[0]}}"
echo "DIR=${DIR}"
echo "FILE=${FILE}"