Last active
          July 7, 2025 17:01 
        
      - 
      
- 
        Save langheran/729341760d1d3c67adeafb49026ad6e9 to your computer and use it in GitHub Desktop. 
    C:\Users\NisimHurst\NDS\scripts\cmds\tfi.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 | |
| setlocal | |
| @REM set TF_LOG=DEBUG | |
| set ENV=qa | |
| IF NOT EXIST "%CD%\backends" ( | |
| echo "No backends directory found. Using default backend configuration." | |
| terraform init -reconfigure -upgrade | |
| ) ELSE ( | |
| echo "Using backend configuration from backends/%ENV%.tfbackend" | |
| terraform init -reconfigure -upgrade -backend-config=./backends/%ENV%.tfbackend | |
| ) | |
| endlocal | |
| echo %time% | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment