This file contains 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
{-# LANGUAGE CPP #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TypeOperators #-} | |
module Main where | |
import Control.Exception.Base (ErrorCall) |
This file contains 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 | |
set -e | |
SERIAL_NUMBER=$1 | |
TOKEN_CODE=$2 | |
if [ -z "${SERIAL_NUMBER}" ] || [ -z "${TOKEN_CODE}" ]; then | |
# Clear when called with eval | |
>&2 echo "# Clearing credentials" | |
echo "unset AWS_ACCESS_KEY_ID" |
This file contains 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 | |
set -e | |
if [ -z "$(which aws)" ] || [ -z "$(which fzf)" ] || [ -z "$(which ykman)" ] || [ -z "$(which jq)" ]; then | |
>&2 echo "# This script requires 'aws', 'fzf', 'ykman' and 'jq' to be installed" | |
exit 1 | |
fi | |
function clear-credentials { | |
>&2 echo "# Clearing credentials" |