Skip to content

🎥 Make videos programmatically with React

improve task prompt wording

Matt McGillivray98a6dd4c58d6
diff --git a/packages/cloudrun/src/gcpInstaller/installerScripts/components/taskPrompt.mts b/packages/cloudrun/src/gcpInstaller/installerScripts/components/taskPrompt.mts
index 53680731e2..ee1774a4c5 100644
--- a/packages/cloudrun/src/gcpInstaller/installerScripts/components/taskPrompt.mts
+++ b/packages/cloudrun/src/gcpInstaller/installerScripts/components/taskPrompt.mts
@@ -10,7 +10,7 @@ export function taskPrompt(projectID: string) {
});
rl.question(
- `What would you like to do?\n[1] Cloud Run rendering in ${colorCode.blueText}${projectID}${colorCode.resetText} - Setup / Update Remotion version.\n[2] ${colorCode.blueText}${projectID}${colorCode.resetText} is already set up for Remotion. Manage keys and/or generate a new .env file for the Remotion Service Account.\n${colorCode.blueText}`,
+ `What would you like to do?\n[1] Setup/Update Cloud Run rendering in ${colorCode.blueText}${projectID}${colorCode.resetText}.\n[2] ${colorCode.blueText}${projectID}${colorCode.resetText} is already set up for Remotion. Manage keys and/or generate a new .env file for the Remotion Service Account.\n${colorCode.blueText}`,
async (answer) => {
// reset terminal color
rl.write(`\n${colorCode.resetText}`);
diff --git a/packages/cloudrun/terraform/readme.md b/packages/cloudrun/src/gcpInstaller/readme.md
similarity index 100%
rename from packages/cloudrun/terraform/readme.md
rename to packages/cloudrun/src/gcpInstaller/readme.md
diff --git a/packages/cloudrun/terraform/main.tf b/packages/cloudrun/terraform/main.tf
deleted file mode 100644
index 028e575952..0000000000
--- a/packages/cloudrun/terraform/main.tf
+++ /dev/null
@@ -1,77 +0,0 @@
-terraform {
- required_providers {
- google = {
- source = "hashicorp/google"
- version = "4.58.0"
- }
- }
-
- required_version = ">= 1.4.1"
-}
-
-variable "project_id" {
- type = string
- description = "The ID of the project in which the resources will be created."
-}
-
-
-variable "service_account_exists" {
- type = bool
- description = "If the service account already exists, no need to re-create."
-}
-
-
-provider "google" {
- project = var.project_id
- region = "us-central1"
- zone = "us-central1-c"
-}
-
-data "http" "permissions" {
- url = "https://storage.googleapis.com/remotion-sa/sa-permissions.json"
-}
-
-locals {
- # permissions = jsondecode(file("${path.module}/../src/shared/sa-permissions.json"))
- cloudrun-permissions = jsondecode(data.http.permissions.response_body)
- service-account-email = "remotion-sa@${var.project_id}.iam.gserviceaccount.com"
-}
-
-# Create an IAM role
-resource "google_project_iam_custom_role" "remotion_sa" {
- role_id = "RemotionSA"
- title = "Remotion API Service Account"
- description = "Allow the service account to manage necessary resources for Remotion Cloud Run rendering."
- permissions = local.cloudrun-permissions.list
-}
-
-# Create a service account
-resource "google_service_account" "remotion_sa" {
- count = var.service_account_exists ? 0 : 1 // if the service account already exists, don't create it
- account_id = "remotion-sa"
- display_name = "Remotion Service Account"
-}
-
-# Bind the IAM role to the service account
-resource "google_project_iam_member" "remotion_sa" {
- project = var.project_id
- role = google_project_iam_custom_role.remotion_sa.id
- member = "serviceAccount:${local.service-account-email}"
-}
-
-# Enable Cloud Run API
-resource "google_project_service" "cloud_run" {
- project = var.project_id
- service = "run.googleapis.com"
-}
-
-# Enable Cloud Resource Manager
-resource "google_project_service" "cloud_resource_manager" {
- project = var.project_id
- service = "cloudresourcemanager.googleapis.com"
-}
-
-# For tf state diagnosis, output the project ID
-output "remotion_project_id" {
- value = var.project_id
-}