I hereby claim:
- I am zmingxie on github.
- I am mxie (https://keybase.io/mxie) on keybase.
- I have a public key ASAQG9nbKt9p3EKNIoG_3EoqEfEXVOi-rST_XP-iIutTlAo
To claim this, I am signing this object:
| #!/usr/bin/env sh | |
| ######## Usage ################################################################# | |
| # | |
| # #1 Install the AWS CLI | |
| # https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html | |
| # | |
| # #2 Install the Session Manager Plugin for the AWS CLI | |
| # https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html | |
| # |
I hereby claim:
To claim this, I am signing this object:
| name: 'Terraform' | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - ".github/workflows/terraform.yaml" | |
| - "terraform/**" | |
| pull_request: |
| #!/usr/bin/env bash | |
| if [ -f /mnt/ramdisk/token ]; then | |
| exec env VAULT_TOKEN=$(vault unwrap -field=token $(jq -r '.token' /mnt/ramdisk/token)) \ | |
| /usr/local/bin/nomad agent \ | |
| -config=/etc/nomad.d \ | |
| -vault-tls-skip-verify=true | |
| else | |
| echo "Nomad service failed due to missing Vault token" | |
| exit 1 |
mainly used in start-up script
When we play with iptables aka firewall we might end up in situation, where we execute rule, which has unforseen impact - lock yourself out. Recovering from this situation is necessity.
How to:
- Enable reboot via SMS.
- Test all commands in shell first before putting them into Start-up script. This way the command will be wiped out, when unit is rebooted.