Skip to content

Instantly share code, notes, and snippets.

Error: Too many list items
│ with google_network_services_edge_cache_service.frontier-media-edge-live,
│ on url_map_live.tf line 132, in resource "google_network_services_edge_cache_service" "frontier-media-edge-live":
│ 132: allow_methods = ["GET", "OPTIONS"] ## NOTE: Do we need POST here?
│ Attribute
│ routing.0.path_matcher.0.route_rule.1.route_action.0.cors_policy.0.allow_origins
│ supports 5 item maximum, but config has 6 declared.
@nazir-kabani
nazir-kabani / bq-transcoding-complete-schema
Last active August 29, 2022 14:33
This is BQ schema for transcoding-complete-status table from Automate your VOD transcoding at scale with GCP: Part 2
[
{
"name": "jobId",
"type": "STRING"
},
{
"name": "location",
"type": "STRING"
},
{
@nazir-kabani
nazir-kabani / transcoding-complete-status-pubsub-schema
Created August 29, 2022 14:22
This is transcoding complete status Pub/Sub schema for Pub/Sub 3 from Automate your VOD transcoding at scale with GCP: Part 2
{
"name": "MyClass",
"type": "record",
"namespace": "com.acme.avro",
"fields": [
{
"name": "jobId",
"type": "string"
},
{
@nazir-kabani
nazir-kabani / requirements.txt
Created August 29, 2022 14:07
this is requirements.txt for cloud functions 2 from Automate your VOD transcoding at scale with GCP: Part 2
# Function dependencies, for example:
# package>=version
google-cloud-video-transcoder>=1.3.2
google-cloud-pubsub>=2.13.4
@nazir-kabani
nazir-kabani / main.py
Created August 29, 2022 14:06
this is main..py for cloud functions 2 from Automate your VOD transcoding at scale with GCP: Part 2
import base64
import re
import argparse
import time
import json
from google.cloud import pubsub_v1
from google.cloud.video.transcoder_v1.services.transcoder_service import (
TranscoderServiceClient,
)
[
{
"name": "name",
"type": "STRING"
},
{
"name": "jobId",
"type": "STRING"
},
{
"type": "record",
"name": "Avro",
"fields": [
{
"name": "name",
"type": "string"
},
{
"name": "jobId",