I have to create a aws instance conditionally. I am using the following code
resource "aws_instance" "server" { ***other fields*** use