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 | |
| set -e | |
| CREDENTIALS_DIR=$HOME/.aws | |
| region=${1:-us-east-1} | |
| role=$2 | |
| command -v aws >/dev/null 2>&1 || { echo -e >&2 "Required: AWS CLI not installed\n\nPossible fix:\n-------------\nsudo -H pip3 install -U awscli\n\nAborting..."; exit 1; } | |
| command -v jq >/dev/null 2>&1 || { echo -e >&2 "Required: jq not installed\n\nPossible fix:\n-------------\nsudo apt update && sudo apt install -y jq\n\nAborting..."; exit 1; } | |
| if ! [ -d $CREDENTIALS_DIR ] |
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
| # Generate a file of a certain size (24Mb) | |
| dd if=/dev/zero of=output.dat bs=1M count=24 |
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
| .PHONY: help | |
| help: | |
| @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
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
| kind: StorageClass | |
| apiVersion: storage.k8s.io/v1 | |
| metadata: | |
| name: gp2 | |
| provisioner: kubernetes.io/aws-ebs | |
| parameters: | |
| type: gp2 | |
| reclaimPolicy: Retain | |
| mountOptions: | |
| - debug |
NewerOlder