When I try to provision an instance with terraform receive error INstance not valid

when i try to spinup the machine with terraform config locally scripts are working fine as expected but when trying from intance provisiong it says Instance is not valid.

Logback Settings for terraform set to debug.

Can you please suggest on how this can be investigated .where can i find logs or validations for the error to identify the cause of it.

Variables are defined as below.
variable “region” {
description = “AWS Region”
type = string
default = “<%= customOptions.region%>”
}
variable “instance_type” {
description = “Instance Type”
type = string
default = “<%= customOptions.instance_type%>”
}

There should be errors being throwing within the Morpheus-UI logs (Administration > Health > Morpheus Logs)

Are you able to share the entire TF code?