Closed samktan closed 1 month ago
@samktan This is done for security reasons because we do not want any default values in the variables. As such we simply expect the user to provide a connections variable file, on the command line (-var-file=/connection.tfvars
), with the appropriate values in. This also enables you to quickly switch between environments by specifying a different variables value file.
OK understood. It's just inconvenient to have to store connection information in .oci/config and in connection.tfvars and to keep them in sync. I guess some shell scripting is called for.
@samktan The alternative is to export to Resource Manager which would use the connection information.
Currently (OKIT 0.60 and 0.61) generate a blank terraform.tfvars file and the user is expected to populate it post export. It would be helpful to pre-populate the file with the contents of the currently active profile that is selected in OKIT, even as a starting point.