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
FROM postgres:9.6.8 | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
curl \ | |
ca-certificates \ | |
build-essential \ | |
postgresql-server-dev-${PG_MAJOR} \ | |
libssl-dev \ | |
libkrb5-dev | |
RUN mkdir -p /tmp/pgaudit && cd /tmp/pgaudit && curl -L https://github.com/pgaudit/pgaudit/archive/1.1.1.tar.gz | tar xz --strip 1 |
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
#!/usr/bin/env bash | |
echo "$(date) - started to tag untagged CSI volumes" | |
untagged_csi_volumes=$(aws --profile my-aws-profile --output json ec2 describe-volumes \ | |
--query 'Volumes[?!not_null(Tags[?Key == `Environment`].Value)] | []') | |
for volume in $(echo "${untagged_csi_volumes}" | jq -r '.[] | @base64'); do | |
volume_id=$(echo "$volume" | base64 --decode | jq -r '.VolumeId') |