how to keep passwords out of terraform code file

I am creating an azure sql server in azure: I have a variables.tf file which currently has the admin password: variable “sql_server_admin_password” { description = “admin password” default = “xxxx” } I then reference that in the main file: resource “azurerm_sql_server” “main” { name = var.sql_server_name resource_group_name = azurerm_resource_group.main.name location = azurerm_resource_group.main.location version = “12.0”…

random reboot – event id 41 (63) with no bugcheck code

For a few weeks now, I get some random reboots on a Windows Server 2012 dedicated server. Those reboots come with the Event ID 41 (63). No BugCheck are associated to this event as you can see with this sample : – <Event xmlns=”http://schemas.microsoft.com/win/2004/08/events/event”> – <System> <Provider Name=”Microsoft-Windows-Kernel-Power” Guid=”{331C3B3A-2005-44C2-AC5E-77220C37D6B4}” /> <EventID>41</EventID> <Version>3</Version> <Level>1</Level> <Task>63</Task> <Opcode>0</Opcode>…

shell scripting with expect and a complex command line: no such file or directory

I’m trying to make this work #!/usr/bin/expect spawn “(psql blabla \”blabla sql;\” &> /dev/null) && (pg_restore -d xx my_file.sql &> /dev/null)” expect “Password for user my_base: ” send “v” But I always get: spawn (psql blabla “blabla sql;” &> /dev/null) && (pg_restore -d xx my_file.sql &> /dev/null) couldn’t execute “(psql blabla “blabla sql;” &> /dev/null)…