This template uploads a file to an AWS S3 bucket and sets the ETag using the file's MD5 hash.

Terraform Template

resource "aws_s3_object" "object" {
  bucket = "your_bucket_name"
  etag = filemd5("path/to/file")
  key = "new_object_key"
  source = "path/to/file"
}