Slackbot
07/19/2023, 3:41 PMScott Barr
07/19/2023, 3:43 PMrepos:
- id: /.*/
workflow: terragrunt
apply_requirements: [approved, mergeable, undiverged]
policies:
owners:
users:
- xxx
policy_sets:
- name: xxx
path: /policy
source: local
workflows:
terragrunt:
plan:
steps:
- env:
name: AWS_PROFILE
value: atlantis
- env:
name: TERRAGRUNT_TFPATH
command: 'echo "terraform"'
- env:
name: TF_IN_AUTOMATION
value: 'true'
- env:
name: INFRACOST_OUTPUT
command: 'echo "/tmp/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM/$WORKSPACE-infracost.json"'
- run:
command: terragrunt plan -input=false -out=$PLANFILE
output: strip_refreshing
- run: terragrunt show -json $PLANFILE > $SHOWFILE
policy_check:
steps:
- run: conftest test -p /policy/ $SHOWFILE
apply:
steps:
- env:
name: AWS_PROFILE
value: atlantis
- env:
name: TERRAGRUNT_TFPATH
command: 'echo "terraform"'
- env:
name: TF_IN_AUTOMATION
value: 'true'
- run: terragrunt apply -input=false $PLANFILEScott Barr
07/19/2023, 3:44 PMpolicies.policy_sets after the update. The policy_check command in the workflow is the samePePe Amengual
07/19/2023, 6:19 PMScott Barr
07/20/2023, 8:11 AM0.23.3 for the time beingPePe Amengual
07/20/2023, 4:20 PMPePe Amengual
07/20/2023, 4:22 PMScott Barr
07/20/2023, 4:45 PM0.36.0 and 0.44.1 of conftest.
I upgraded the version of conftest after atlantis thinking it could be related.PePe Amengual
07/20/2023, 4:55 PM