oracle / oci-designer-toolkit

OCI designer toolKIT (OKIT) is a set of tools for enabling design, deploy and visualise OCI environments through a graphical web based interface.
Universal Permissive License v1.0
262 stars 123 forks source link

EHN REQ: Populate terraform.tfvars with active profile #650

Closed samktan closed 1 month ago

samktan commented 2 months ago

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.

toxophilist commented 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.

samktan commented 1 month ago

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.

toxophilist commented 1 month ago

@samktan The alternative is to export to Resource Manager which would use the connection information.