fastly_package_hash

Use this data source to generate a SHA512 hash of all files (in sorted order) within the package.

Example Usage

data "fastly_package_hash" "example" {
  filename = "./path/to/package.tar.gz"
}

resource "fastly_service_compute" "example" {
  # ...

  package {
    filename         = "./path/to/package.tar.gz"
    source_code_hash = data.fastly_package_hash.example.hash
  }
}

Schema

Optional

Read-Only