If your origin is a HTTP server and not S3, you need to include custom_origin_config property to your configuration to make it work. See Terraform documentation.
custom_origin_config