Created
          October 27, 2025 19:09 
        
      - 
      
- 
        Save langheran/4a5184cd7f4b0b2640a36b887a5a4f24 to your computer and use it in GitHub Desktop. 
    C:\Users\NisimHurst\NDS\scripts\cmds\tfanl.cmd
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @echo off | |
| echo %time% | |
| setlocal | |
| @REM set TF_LOG=DEBUG | |
| for /F %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a" | |
| IF NOT DEFINED ENV ( | |
| set ENV=qa | |
| ) | |
| IF NOT EXIST "%CD%\vars" ( | |
| echo %ESC%[33mterraform apply -lock=false -auto-approve%ESC%[0m | |
| terraform apply -lock=false -auto-approve %* | |
| ) ELSE ( | |
| echo %ESC%[33mterraform apply -lock=false -auto-approve -var-file=vars/%ENV%.tfvars%ESC%[0m | |
| terraform apply -lock=false -auto-approve %* -var-file=vars/%ENV%.tfvars | |
| ) | |
| endlocal | |
| echo %time% | |
| call powershell "[console]::beep(900,3000)" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment