Skip to content

Commit

Permalink
remove -auto-apply
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 10, 2026
1 parent dfdf0b2 commit ccf2da1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions local-app/python-tools/idc-membership-check/user_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ccf2da1

Please sign in to comment.