I hereby claim:
- I am grrywlsn on github.
- I am grrywlsn (https://keybase.io/grrywlsn) on keybase.
- I have a public key whose fingerprint is F071 EAF0 7A28 DBF2 CE0E C5B9 2864 5287 6A69 2EDF
To claim this, I am signing this object:
#!/bin/bash | |
while [[ backup ]] ; do | |
backup=`aws backup list-recovery-points-by-backup-vault --backup-vault-name @@@@ --max-results 1 | jq -r ".RecoveryPoints[].RecoveryPointArn"` | |
echo "Deleting $backup..." | |
`aws backup delete-recovery-point --backup-vault-name @@@@ --recovery-point-arn $backup` | |
done |
kubectl get deployment -n production -o wide | awk '{n=split($8,A,":"); print $1 " " A[n]}' |
#!/bin/bash | |
cp ~/.kube/$1-admin.kubeconfig ~/.kube/config |
#!/bin/bash | |
set -e | |
# set -x | |
RED='\033[0;31m' | |
BLUE='\033[0;34m' | |
GREEN='\033[1;32m' | |
NC='\033[0m' # No Color |
curl --silent "http://www.ec2instances.info/instances.json" | jq '.[] | select(.instance_type=="r4.large").pricing["eu-west-1"].linux.ondemand' |
#!/bin/bash | |
set -e | |
# set -x | |
RED='\033[0;31m' | |
BLUE='\033[0;34m' | |
GREEN='\033[1;32m' | |
NC='\033[0m' # No Color |
I hereby claim:
To claim this, I am signing this object:
#cloud-config | |
write_files: | |
- path: /etc/conf.d/nfs | |
permissions: '0644' | |
content: | | |
OPTS_RPC_MOUNTD="" | |
coreos: | |
units: | |
- name: rpc-statd.service | |
command: start |
coreos: | |
flannel: | |
interface: $private_ipv4 | |
etcd_endpoints: http://127.0.0.1:2379 | |
etcd2: | |
advertise-client-urls: http://$private_ipv4:2379 | |
initial-advertise-peer-urls: http://$private_ipv4:2380 | |
listen-client-urls: http://0.0.0.0:2379 | |
listen-peer-urls: http://$private_ipv4:2380 | |
units: |
--- | |
- hosts: localhost | |
tasks: | |
- name: get ec2 facts | |
action: ec2_facts | |
- name: list tags on an instance | |
ec2_tag: | |
region: "{{ ansible_ec2_placement_region }}" | |
resource: "{{ ansible_ec2_instance_id }}" |