dotfiles/.local/bin/aws-config-refresh
2019-05-20 14:05:57 +02:00

12 lines
584 B
Bash
Executable file

#!/usr/bin/env bash
# This should have been a make script. But apperantly the linux shebang is
# defeated by commands with more than 1 argument (#!/usr/bin/env make -f).
# ^^
# Soo...
make -f - <<EOF
~/.aws/config: ~/.aws/profiles.html
aws-config-gen -d --default-role admin $< > $@
# aws-config-gen -r eu-central-1 --suffix -🍺 --default-role admin $< >> $@
# aws-config-gen -r eu-west-1 --suffix -🍀 --default-role admin $< >> $@
# aws-config-gen -r us-east-1 --suffix -🍔 --default-role admin $< >> $@
EOF