Skip to content

Instantly share code, notes, and snippets.

View lebenitza's full-sized avatar

Mihai A. lebenitza

View GitHub Profile
@lebenitza
lebenitza / vpc-delete-default.sh
Created March 8, 2024 14:42
Delete all default VPCs (assumes AWS CLI SSO with profile for each account)
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
accounts=("account1" "account2")
# If you use regions introduced after March 20, 2019, tweak this query!
# More here: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html
@lebenitza
lebenitza / containrrr-watchtower.yml
Last active April 4, 2023 21:14
docker compose for containrrr/watchtower on EC2/ECR
version: "3.9"
services:
watchtower:
image: containrrr/watchtower:1.5.3
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
- /usr/bin/docker-credential-ecr-login:/go/bin/docker-credential-ecr-login
environment: