Keep temporary tfvars

Hello,

for debugging purpose, i wan’t to morpheus not to delete temporary files. For example, when i lauch a terraform, logs does : [RxCachedThreadScheduler-640] terraform command error: export http_proxy=172.19.71.20:8080; export https_proxy=xxx; export ftp_proxy=xxx; export no_proxy="localhost,127.0.0.1,::1"; TF_DATA_DIR=/var/opt/morpheus/morpheus-ui/workspace/terraform/647f8628b8346885fe8526fb4dadd690/instance-9de89266-44f4-42eb-bf1d-e2a8a3d855e1/.terraform TF_IN_AUTOMATION=true /var/opt/morpheus/morpheus-ui/workspace/terraform/runtime/1.5.7/terraform plan -no-color -input=false -lock-timeout=60s -compact-warnings -state=/var/opt/morpheus/morpheus-ui/workspace/terraform/647f8628b8346885fe8526fb4dadd690/instance-9de89266-44f4-42eb-bf1d-e2a8a3d855e1/terraform.tfstate -var-file=/var/opt/morpheus/morpheus-ui/workspace/terraform/647f8628b8346885fe8526fb4dadd690/instance-9de89266-44f4-42eb-bf1d-e2a8a3d855e1/morpheus-0f93eac5-2ce1-4583-a625-87bace647b63.tfvars - tf command: plan -no-color -input=false -lock-timeout=60s -compact-warnings -state=/var/opt/morpheus/morpheus-ui/workspace/terraform/647f8628b8346885fe8526fb4dadd690/instance-9de89266-44f4-42eb-bf1d-e2a8a3d855e1/terraform.tfstate - content path: /var/opt/morpheus/morpheus-local/repo/local/647f8628b8346885fe8526fb4dadd690 - working path: /var/opt/morpheus/morpheus-ui/workspace/terraform/647f8628b8346885fe8526fb4dadd690/instance-9de89266-44f4-42eb-bf1d-e2a8a3d855e1 error: Error: "name" may only contain alphanumeric characters, dash, underscores, parentheses and periods with azurerm_resource_group.morpheus, on main.tf line 3, in resource "azurerm_resource_group" "morpheus": 3: name = format("rg-%s-%s-001", local.env_letter, local.application_name)

I wan’t to have a look to morpheus-0f93eac5-2ce1-4583-a625-87bace647b63.tfvars, but it disapeared.
Is it possible ?

regards

Hello,

I believe the morpheus-xyz.tfvars files are intentionally removed to enhance security and protect your sensitive information. This precaution ensures that passwords are not displayed in plain text, which could potentially be accessed by unauthorized systems or individuals. Rest assured, this measure is in place to safeguard your data and maintain a high level of security.

1 Like

Hello,

if it was a matter of security, tfstates would be removed or encrypted. They are removed because they are useless in a normal environment

regards