Skip to content

Instantly share code, notes, and snippets.

View maximmi's full-sized avatar

Maxim Mironenko maximmi

View GitHub Profile
@maximmi
maximmi / keybase.md
Created April 25, 2019 07:00
Keybase

Keybase proof

I hereby claim:

  • I am maximmi on github.
  • I am simixido (https://keybase.io/simixido) on keybase.
  • I have a public key ASBSto89-zpnFiIH_0auM_-sZvUo9vJe7xl-FvuC_RwPago

To claim this, I am signing this object:

@maximmi
maximmi / atlantis.yaml
Created June 3, 2019 12:33
Access to AWS ECS Atlantis container
...
workflows:
make:
plan:
steps:
- run: '$DIR/run-tmate.sh'
# - run: "make reset deps"
# - run: "set -o pipefail; make plan | tfmask | scenery --no-color"
apply:
@maximmi
maximmi / default.auto.tfvars
Created March 19, 2021 07:00
userdata for EC2 instance to mount volumes
user_data = [
"while [ ! -b $(readlink -f /dev/sdh) ]; do echo 'waiting for device /dev/sdh'; sleep 5 ; done",
"blkid $(readlink -f /dev/sdh) || mkfs -t ext4 $(readlink -f /dev/sdh)",
"e2label $(readlink -f /dev/sdh) sdh-volume",
"grep -q ^LABEL=sdh-volume /etc/fstab || echo 'LABEL=sdh-volume /mnt ext4 defaults' >> /etc/fstab",
"grep -q \"^$(readlink -f /dev/sdh) /mnt \" /proc/mounts || mount /mnt",
]