Stream
resource cloudflare_stream
optional
The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of -1 means the value is unknown.
Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a null value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time.
The date and time when the video upload URL is no longer valid for direct user uploads.
Lists the origins allowed to display the video. Enter allowed origin domains in an array and use * for wildcard subdomains. Empty arrays allow the video to be viewed on any origin.
A user modifiable key-value store used to reference other systems of record for managing videos.
Indicates whether the video can be a accessed using the UID. When set to true, a signed token must be generated with a signing key to view the video.
The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.
computed
The duration of the video in seconds. A value of -1 means the duration is unknown. The duration becomes available after the upload and before the video is ready.
Indicates whether the video is playable. The field is empty if the video is not ready for viewing or the live stream is still in progress.
cloudflare_stream
resource "cloudflare_stream" "example_stream" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
data cloudflare_stream
required
computed
The duration of the video in seconds. A value of -1 means the duration is unknown. The duration becomes available after the upload and before the video is ready.
The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of -1 means the value is unknown.
Indicates whether the video is playable. The field is empty if the video is not ready for viewing or the live stream is still in progress.
Indicates the time at which the video became playable. The field is empty if the video is not ready for viewing or the live stream is still in progress.
Indicates whether the video can be a accessed using the UID. When set to true, a signed token must be generated with a signing key to view the video.
Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a null value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time.
The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.
The date and time when the video upload URL is no longer valid for direct user uploads.
cloudflare_stream
data "cloudflare_stream" "example_stream" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
identifier = "ea95132c15732412d22c1476fa83f27a"
}
data cloudflare_streams
cloudflare_streams
data "cloudflare_streams" "example_streams" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
creator = "creator-id_abcde12345"
end = "2014-01-02T02:20:00Z"
search = "puppy.mp4"
start = "2014-01-02T02:20:00Z"
status = "inprogress"
type = "live"
video_name = "puppy.mp4"
}
StreamAudio Tracks
resource cloudflare_stream_audio_track
required
optional
cloudflare_stream_audio_track
resource "cloudflare_stream_audio_track" "example_stream_audio_track" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
identifier = "ea95132c15732412d22c1476fa83f27a"
audio_identifier = "ea95132c15732412d22c1476fa83f27a"
default = true
label = "director commentary"
}
data cloudflare_stream_audio_track
required
cloudflare_stream_audio_track
data "cloudflare_stream_audio_track" "example_stream_audio_track" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
identifier = "ea95132c15732412d22c1476fa83f27a"
}
StreamKeys
resource cloudflare_stream_key
cloudflare_stream_key
resource "cloudflare_stream_key" "example_stream_key" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
StreamLive Inputs
resource cloudflare_stream_live_input
optional
Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a null value to remove an existing scheduled deletion.
cloudflare_stream_live_input
resource "cloudflare_stream_live_input" "example_stream_live_input" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
default_creator = "defaultCreator"
delete_recording_after_days = 45
enabled = true
meta = {
name = "test stream 1"
}
recording = {
allowed_origins = ["example.com"]
hide_live_viewer_count = false
mode = "off"
require_signed_urls = false
timeout_seconds = 0
}
}
data cloudflare_stream_live_input
required
computed
Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a null value to remove an existing scheduled deletion.
cloudflare_stream_live_input
data "cloudflare_stream_live_input" "example_stream_live_input" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
live_input_identifier = "66be4bf738797e01e1fca35a7bdecdcd"
}
StreamWatermarks
resource cloudflare_stream_watermark
optional
The translucency of the image. A value of 0.0 makes the image completely transparent, and 1.0 makes the image completely opaque. Note that if the image is already semi-transparent, setting this to 1.0 will not make the image completely opaque.
The whitespace between the adjacent edges (determined by position) of the video and the image. 0.0 indicates no padding, and 1.0 indicates a fully padded video width or length, as determined by the algorithm.
cloudflare_stream_watermark
resource "cloudflare_stream_watermark" "example_stream_watermark" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
file = "@/Users/rchen/Downloads/watermark.png"
name = "Marketing Videos"
opacity = 0.75
padding = 0.1
position = "center"
scale = 0.1
}
data cloudflare_stream_watermark
required
computed
The source URL for a downloaded image. If the watermark profile was created via direct upload, this field is null.
The translucency of the image. A value of 0.0 makes the image completely transparent, and 1.0 makes the image completely opaque. Note that if the image is already semi-transparent, setting this to 1.0 will not make the image completely opaque.
The whitespace between the adjacent edges (determined by position) of the video and the image. 0.0 indicates no padding, and 1.0 indicates a fully padded video width or length, as determined by the algorithm.
The location of the image. Valid positions are: upperRight, upperLeft, lowerLeft, lowerRight, and center. Note that center ignores the padding parameter.
cloudflare_stream_watermark
data "cloudflare_stream_watermark" "example_stream_watermark" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
identifier = "ea95132c15732412d22c1476fa83f27a"
}
data cloudflare_stream_watermarks
cloudflare_stream_watermarks
data "cloudflare_stream_watermarks" "example_stream_watermarks" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
StreamWebhooks
resource cloudflare_stream_webhook
cloudflare_stream_webhook
resource "cloudflare_stream_webhook" "example_stream_webhook" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
notification_url = "https://example.com"
}
StreamCaptionsLanguage
resource cloudflare_stream_caption_language
required
cloudflare_stream_caption_language
resource "cloudflare_stream_caption_language" "example_stream_caption_language" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
identifier = "ea95132c15732412d22c1476fa83f27a"
language = "tr"
}
data cloudflare_stream_caption_language
required
cloudflare_stream_caption_language
data "cloudflare_stream_caption_language" "example_stream_caption_language" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
identifier = "ea95132c15732412d22c1476fa83f27a"
language = "tr"
}
StreamDownloads
resource cloudflare_stream_download
required
cloudflare_stream_download
resource "cloudflare_stream_download" "example_stream_download" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
identifier = "ea95132c15732412d22c1476fa83f27a"
}
data cloudflare_stream_download
required
cloudflare_stream_download
data "cloudflare_stream_download" "example_stream_download" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
identifier = "ea95132c15732412d22c1476fa83f27a"
}