Slackbot
07/06/2023, 2:10 PMPePe Amengual
07/06/2023, 3:58 PMPePe Amengual
07/06/2023, 3:58 PMPePe Amengual
07/06/2023, 3:59 PMJustin S
07/06/2023, 3:59 PMJustin S
07/06/2023, 3:59 PMPePe Amengual
07/06/2023, 4:02 PMJustin S
07/06/2023, 4:18 PMPePe Amengual
07/06/2023, 4:34 PMJustin S
07/06/2023, 4:34 PMJustin S
07/06/2023, 4:59 PM╷
│ Error: Failed to install provider
│
│ Error while installing hashicorp/aws v5.6.2: open
│ /atlantis-data/plugin-cache/registry.terraform.io/hashicorp/aws/5.6.2/linux_amd64/terraform-provider-aws_v5.6.2_x5:
│ text file busy
╵Justin S
07/06/2023, 5:00 PMJustin S
07/06/2023, 5:01 PMRoi Mor
09/20/2023, 5:20 PMJustin S
09/20/2023, 5:21 PMJustin S
09/20/2023, 5:22 PM❯ bat -p 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; \
doneRoi Mor
09/20/2023, 5:25 PMPePe Amengual
09/20/2023, 5:25 PMPePe Amengual
09/20/2023, 5:27 PMPePe Amengual
09/20/2023, 5:27 PMJustin S
09/20/2023, 8:14 PMJustin S
09/20/2023, 8:14 PM