terraform refresh --help



  • Check for updates to the options: https://www.terraform.io/docs/commands/index.html

    Usage: terraform refresh [options] [dir]
    
      Update the state file of your infrastructure with metadata that matches
      the physical resources they are tracking.
    
      This will not modify your infrastructure, but it can modify your
      state file to update metadata. This metadata might cause new changes
      to occur when you generate a plan or call apply next.
    
    Options:
    
      -backup=path        Path to backup the existing state file before
                          modifying. Defaults to the "-state-out" path with
                          ".backup" extension. Set to "-" to disable backup.
    
      -input=true         Ask for input for variables if not directly set.
    
      -lock=true          Lock the state file when locking is supported.
    
      -lock-timeout=0s    Duration to retry a state lock.
    
      -no-color           If specified, output won't contain any color.
    
      -state=path         Path to read and save state (unless state-out
                          is specified). Defaults to "terraform.tfstate".
    
      -state-out=path     Path to write updated state file. By default, the
                          "-state" path will be used.
    
      -target=resource    Resource to target. Operation will be limited to this
                          resource and its dependencies. This flag can be used
                          multiple times.
    
      -var 'foo=bar'      Set a variable in the Terraform configuration. This
                          flag can be set multiple times.
    
      -var-file=foo       Set variables in the Terraform configuration from
                          a file. If "terraform.tfvars" or any ".auto.tfvars"
                          files are present, they will be automatically loaded.
    

Log in to reply
 

© Lightnetics 2024