Execute terraform user data on windows server (OCI Compute Instance)
From terraform we are trying to execute user data, which comprises of a PowerShell script to install tenable agent on windows server. Though the terraform deployment is successful, but we are unable to see the agent installed on OCI server.
We also noticed the cloud init is not running on that windows server, also there were few errors been captured in the server logs which mentioned below.
Error Log - The cloudbase-init service terminated unexpectedly. It has done this 1 time(s).
Although we executed the user data manually through the console which seems to be working fine, but we only faced this issue while deploying it via below terraform script.
1