Data loss can occur due to un-encrypted connection between AWS CloudFront and Origin server.
In AWS Console -
In Terraform -
For more information, see the AWS or Terraform documentation.
References:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-cloudfront-to-custom-origin.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution