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
#!/bin/bash | |
TMPDIR=$(mktemp -d $MKTEMP_BASEDIR) | |
function check_service { | |
mkdir -p $TMPDIR/logs/ | |
journalctl -n 100000 --unit=k3s > $TMPDIR/logs/journalctl-k3s | |
} |
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
#!/bin/sh | |
auth=$(aws sts get-session-token --profile prod-static \ | |
--serial-number arn:aws:iam::<mfa> \ | |
--duration-seconds 129600 \ | |
--token-code "$1") | |
aws --profile prod configure set region us-east-1 | |
aws --profile prod configure set aws_access_key_id "$(echo $auth | jq -r .Credentials.AccessKeyId)" | |
aws --profile prod configure set aws_secret_access_key "$(echo $auth | jq -r .Credentials.SecretAccessKey)" |
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
admin: | |
access_log_path: "/dev/null" | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 9901 | |
static_resources: | |
listeners: | |
- name: redis_listener |
OlderNewer