Slackbot
07/12/2023, 1:06 PMRémi FLAMENT
07/12/2023, 1:31 PMRémi FLAMENT
07/12/2023, 1:32 PMJustin S
07/12/2023, 1:32 PMJustin S
07/12/2023, 1:32 PMJustin S
07/12/2023, 1:33 PM❯ cat repo-config-generator.sh
#!/usr/bin/env bash
shopt -s globstar
set -euo pipefail
echo '{"version":3,"parallel_plan":false,"parallel_apply":false,"projects":}' | yq -PM > atlantis.yaml
grep -P 'backend[\s]+"s3"' **/*.tf |
rev | cut -d'/' -f2- | rev |
sort |
uniq |
while read -r d; do \
echo '[ {"name": "'"$d"'","dir": "'"$d"'", "autoplan": {"when_modified": ["*.tf", "**/*.tpl","**/*.yaml.tpl", ".terraform.lock.hcl"] }} ]' | yq -PM >> atlantis.yaml; \
doneJustin S
07/12/2023, 1:33 PMJustin S
07/12/2023, 1:33 PMJustin S
07/12/2023, 1:34 PMJustin S
07/12/2023, 1:34 PMRémi FLAMENT
07/12/2023, 1:35 PMJustin S
07/12/2023, 1:35 PM❯ cat CODEOWNERS
[operations] @operationsapprovers
.tfgen.yaml
dev/us-west-2/ops/
[prod][2] @prodapprovers
prod/
[staging] @TREx
dev/us-west-2/deploys/staging/Justin S
07/12/2023, 1:35 PM/dev that ISNT under ops doesnt need an approval, so anyone can create MR plan/applyJustin S
07/12/2023, 1:36 PMJustin S
07/12/2023, 1:36 PM❯ cat CODEOWNERS
[trex] @trex
*
[operations] @justin @sebastien
dev/ops/
external/
remote_access/
NOTES.md
[justin] @justin
dev/deploys/jls/Justin S
07/12/2023, 1:36 PMJustin S
07/12/2023, 1:36 PMJustin S
07/12/2023, 1:36 PMRémi FLAMENT
07/12/2023, 1:39 PMRoi Mor
09/20/2023, 5:23 PMJustin S
09/20/2023, 5:23 PMJustin S
09/20/2023, 5:23 PM