diff --git a/local-app/python-tools/idc-membership-check/user_update.sh b/local-app/python-tools/idc-membership-check/user_update.sh index 9df4251a..43759cef 100755 --- a/local-app/python-tools/idc-membership-check/user_update.sh +++ b/local-app/python-tools/idc-membership-check/user_update.sh @@ -89,10 +89,9 @@ then targets+=" -target=data.ldap_object.users[\"$u\"]" targets+=" -target=aws_identitystore_user.users[\"$u\"]" done - #tf-apply -auto-approve $targets tf-plan -refresh=false -out=$TMPDIR/user_add.tfplan $targets tf-plan summary - echo "tf-apply -refresh=false $TMPDIR/user_add.tfplan" + tf-apply -refresh=false $TMPDIR/user_add.tfplan status=$? fi set +euo pipefail @@ -137,10 +136,9 @@ then targets+=" -target=aws_identitystore_user.users[\"$u\"]" done #echo "tf-destroy -refresh-false -approve $targets" - #tf-destroy -auto-approve $targets tf-plan -refresh=false -destroy -out=$TMPDIR/user_delete.tfplan $targets tf-plan summary - echo "tf-apply -refresh=false -destroy $TMPDIR/user_delete.tfplan" + tf-apply -refresh=false -destroy $TMPDIR/user_delete.tfplan status=$? fi set +euo pipefail