1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. firebase
  5. AppHostingBackend
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

gcp.firebase.AppHostingBackend

Explore with Pulumi AI

A Backend is the primary resource of App Hosting.

Example Usage

Firebase App Hosting Backend Minimal

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

//## Include these blocks only once per project if you are starting from scratch ###
const serviceAccount = new gcp.serviceaccount.Account("service_account", {
    project: "my-project-name",
    accountId: "firebase-app-hosting-compute",
    displayName: "Firebase App Hosting compute service account",
    createIgnoreAlreadyExists: true,
});
const fah = new gcp.projects.Service("fah", {
    project: "my-project-name",
    service: "firebaseapphosting.googleapis.com",
    disableOnDestroy: false,
});
const example = new gcp.firebase.AppHostingBackend("example", {
    project: "my-project-name",
    location: "us-central1",
    backendId: "mini",
    appId: "1:0000000000:web:674cde32020e16fbce9dbd",
    servingLocality: "GLOBAL_ACCESS",
    serviceAccount: serviceAccount.email,
}, {
    dependsOn: [fah],
});
const appHostingSaRunner = new gcp.projects.IAMMember("app_hosting_sa_runner", {
    project: "my-project-name",
    role: "roles/firebaseapphosting.computeRunner",
    member: serviceAccount.member,
});
Copy
import pulumi
import pulumi_gcp as gcp

### Include these blocks only once per project if you are starting from scratch ###
service_account = gcp.serviceaccount.Account("service_account",
    project="my-project-name",
    account_id="firebase-app-hosting-compute",
    display_name="Firebase App Hosting compute service account",
    create_ignore_already_exists=True)
fah = gcp.projects.Service("fah",
    project="my-project-name",
    service="firebaseapphosting.googleapis.com",
    disable_on_destroy=False)
example = gcp.firebase.AppHostingBackend("example",
    project="my-project-name",
    location="us-central1",
    backend_id="mini",
    app_id="1:0000000000:web:674cde32020e16fbce9dbd",
    serving_locality="GLOBAL_ACCESS",
    service_account=service_account.email,
    opts = pulumi.ResourceOptions(depends_on=[fah]))
app_hosting_sa_runner = gcp.projects.IAMMember("app_hosting_sa_runner",
    project="my-project-name",
    role="roles/firebaseapphosting.computeRunner",
    member=service_account.member)
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/serviceaccount"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// ## Include these blocks only once per project if you are starting from scratch ###
		serviceAccount, err := serviceaccount.NewAccount(ctx, "service_account", &serviceaccount.AccountArgs{
			Project:                   pulumi.String("my-project-name"),
			AccountId:                 pulumi.String("firebase-app-hosting-compute"),
			DisplayName:               pulumi.String("Firebase App Hosting compute service account"),
			CreateIgnoreAlreadyExists: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		fah, err := projects.NewService(ctx, "fah", &projects.ServiceArgs{
			Project:          pulumi.String("my-project-name"),
			Service:          pulumi.String("firebaseapphosting.googleapis.com"),
			DisableOnDestroy: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = firebase.NewAppHostingBackend(ctx, "example", &firebase.AppHostingBackendArgs{
			Project:         pulumi.String("my-project-name"),
			Location:        pulumi.String("us-central1"),
			BackendId:       pulumi.String("mini"),
			AppId:           pulumi.String("1:0000000000:web:674cde32020e16fbce9dbd"),
			ServingLocality: pulumi.String("GLOBAL_ACCESS"),
			ServiceAccount:  serviceAccount.Email,
		}, pulumi.DependsOn([]pulumi.Resource{
			fah,
		}))
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "app_hosting_sa_runner", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/firebaseapphosting.computeRunner"),
			Member:  serviceAccount.Member,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    //## Include these blocks only once per project if you are starting from scratch ###
    var serviceAccount = new Gcp.ServiceAccount.Account("service_account", new()
    {
        Project = "my-project-name",
        AccountId = "firebase-app-hosting-compute",
        DisplayName = "Firebase App Hosting compute service account",
        CreateIgnoreAlreadyExists = true,
    });

    var fah = new Gcp.Projects.Service("fah", new()
    {
        Project = "my-project-name",
        ServiceName = "firebaseapphosting.googleapis.com",
        DisableOnDestroy = false,
    });

    var example = new Gcp.Firebase.AppHostingBackend("example", new()
    {
        Project = "my-project-name",
        Location = "us-central1",
        BackendId = "mini",
        AppId = "1:0000000000:web:674cde32020e16fbce9dbd",
        ServingLocality = "GLOBAL_ACCESS",
        ServiceAccount = serviceAccount.Email,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            fah,
        },
    });

    var appHostingSaRunner = new Gcp.Projects.IAMMember("app_hosting_sa_runner", new()
    {
        Project = "my-project-name",
        Role = "roles/firebaseapphosting.computeRunner",
        Member = serviceAccount.Member,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.serviceaccount.Account;
import com.pulumi.gcp.serviceaccount.AccountArgs;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.firebase.AppHostingBackend;
import com.pulumi.gcp.firebase.AppHostingBackendArgs;
import com.pulumi.gcp.projects.IAMMember;
import com.pulumi.gcp.projects.IAMMemberArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        //## Include these blocks only once per project if you are starting from scratch ###
        var serviceAccount = new Account("serviceAccount", AccountArgs.builder()
            .project("my-project-name")
            .accountId("firebase-app-hosting-compute")
            .displayName("Firebase App Hosting compute service account")
            .createIgnoreAlreadyExists(true)
            .build());

        var fah = new Service("fah", ServiceArgs.builder()
            .project("my-project-name")
            .service("firebaseapphosting.googleapis.com")
            .disableOnDestroy(false)
            .build());

        var example = new AppHostingBackend("example", AppHostingBackendArgs.builder()
            .project("my-project-name")
            .location("us-central1")
            .backendId("mini")
            .appId("1:0000000000:web:674cde32020e16fbce9dbd")
            .servingLocality("GLOBAL_ACCESS")
            .serviceAccount(serviceAccount.email())
            .build(), CustomResourceOptions.builder()
                .dependsOn(fah)
                .build());

        var appHostingSaRunner = new IAMMember("appHostingSaRunner", IAMMemberArgs.builder()
            .project("my-project-name")
            .role("roles/firebaseapphosting.computeRunner")
            .member(serviceAccount.member())
            .build());

    }
}
Copy
resources:
  example:
    type: gcp:firebase:AppHostingBackend
    properties:
      project: my-project-name
      location: us-central1
      backendId: mini
      appId: 1:0000000000:web:674cde32020e16fbce9dbd
      servingLocality: GLOBAL_ACCESS
      serviceAccount: ${serviceAccount.email}
    options:
      dependsOn:
        - ${fah}
  ### Include these blocks only once per project if you are starting from scratch ###
  serviceAccount:
    type: gcp:serviceaccount:Account
    name: service_account
    properties:
      project: my-project-name
      accountId: firebase-app-hosting-compute
      displayName: Firebase App Hosting compute service account
      createIgnoreAlreadyExists: true
  appHostingSaRunner:
    type: gcp:projects:IAMMember
    name: app_hosting_sa_runner
    properties:
      project: my-project-name
      role: roles/firebaseapphosting.computeRunner
      member: ${serviceAccount.member}
  fah:
    type: gcp:projects:Service
    properties:
      project: my-project-name
      service: firebaseapphosting.googleapis.com
      disableOnDestroy: false
Copy

Firebase App Hosting Backend Full

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

//## Include these blocks only once per project if you are starting from scratch ###
const serviceAccount = new gcp.serviceaccount.Account("service_account", {
    project: "my-project-name",
    accountId: "firebase-app-hosting-compute",
    displayName: "Firebase App Hosting compute service account",
    createIgnoreAlreadyExists: true,
});
const fah = new gcp.projects.Service("fah", {
    project: "my-project-name",
    service: "firebaseapphosting.googleapis.com",
    disableOnDestroy: false,
});
const example = new gcp.firebase.AppHostingBackend("example", {
    project: "my-project-name",
    location: "us-central1",
    backendId: "full",
    appId: "1:0000000000:web:674cde32020e16fbce9dbd",
    displayName: "My Backend",
    servingLocality: "GLOBAL_ACCESS",
    serviceAccount: serviceAccount.email,
    environment: "prod",
    annotations: {
        key: "value",
    },
    labels: {
        key: "value",
    },
}, {
    dependsOn: [fah],
});
const appHostingSaDeveloperconnect = new gcp.projects.IAMMember("app_hosting_sa_developerconnect", {
    project: "my-project-name",
    role: "roles/developerconnect.readTokenAccessor",
    member: serviceAccount.member,
});
const appHostingSaAdminsdk = new gcp.projects.IAMMember("app_hosting_sa_adminsdk", {
    project: "my-project-name",
    role: "roles/firebase.sdkAdminServiceAgent",
    member: serviceAccount.member,
});
const appHostingSaRunner = new gcp.projects.IAMMember("app_hosting_sa_runner", {
    project: "my-project-name",
    role: "roles/firebaseapphosting.computeRunner",
    member: serviceAccount.member,
});
Copy
import pulumi
import pulumi_gcp as gcp

### Include these blocks only once per project if you are starting from scratch ###
service_account = gcp.serviceaccount.Account("service_account",
    project="my-project-name",
    account_id="firebase-app-hosting-compute",
    display_name="Firebase App Hosting compute service account",
    create_ignore_already_exists=True)
fah = gcp.projects.Service("fah",
    project="my-project-name",
    service="firebaseapphosting.googleapis.com",
    disable_on_destroy=False)
example = gcp.firebase.AppHostingBackend("example",
    project="my-project-name",
    location="us-central1",
    backend_id="full",
    app_id="1:0000000000:web:674cde32020e16fbce9dbd",
    display_name="My Backend",
    serving_locality="GLOBAL_ACCESS",
    service_account=service_account.email,
    environment="prod",
    annotations={
        "key": "value",
    },
    labels={
        "key": "value",
    },
    opts = pulumi.ResourceOptions(depends_on=[fah]))
app_hosting_sa_developerconnect = gcp.projects.IAMMember("app_hosting_sa_developerconnect",
    project="my-project-name",
    role="roles/developerconnect.readTokenAccessor",
    member=service_account.member)
app_hosting_sa_adminsdk = gcp.projects.IAMMember("app_hosting_sa_adminsdk",
    project="my-project-name",
    role="roles/firebase.sdkAdminServiceAgent",
    member=service_account.member)
app_hosting_sa_runner = gcp.projects.IAMMember("app_hosting_sa_runner",
    project="my-project-name",
    role="roles/firebaseapphosting.computeRunner",
    member=service_account.member)
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/serviceaccount"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// ## Include these blocks only once per project if you are starting from scratch ###
		serviceAccount, err := serviceaccount.NewAccount(ctx, "service_account", &serviceaccount.AccountArgs{
			Project:                   pulumi.String("my-project-name"),
			AccountId:                 pulumi.String("firebase-app-hosting-compute"),
			DisplayName:               pulumi.String("Firebase App Hosting compute service account"),
			CreateIgnoreAlreadyExists: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		fah, err := projects.NewService(ctx, "fah", &projects.ServiceArgs{
			Project:          pulumi.String("my-project-name"),
			Service:          pulumi.String("firebaseapphosting.googleapis.com"),
			DisableOnDestroy: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = firebase.NewAppHostingBackend(ctx, "example", &firebase.AppHostingBackendArgs{
			Project:         pulumi.String("my-project-name"),
			Location:        pulumi.String("us-central1"),
			BackendId:       pulumi.String("full"),
			AppId:           pulumi.String("1:0000000000:web:674cde32020e16fbce9dbd"),
			DisplayName:     pulumi.String("My Backend"),
			ServingLocality: pulumi.String("GLOBAL_ACCESS"),
			ServiceAccount:  serviceAccount.Email,
			Environment:     pulumi.String("prod"),
			Annotations: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
			Labels: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			fah,
		}))
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "app_hosting_sa_developerconnect", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/developerconnect.readTokenAccessor"),
			Member:  serviceAccount.Member,
		})
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "app_hosting_sa_adminsdk", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/firebase.sdkAdminServiceAgent"),
			Member:  serviceAccount.Member,
		})
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "app_hosting_sa_runner", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/firebaseapphosting.computeRunner"),
			Member:  serviceAccount.Member,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    //## Include these blocks only once per project if you are starting from scratch ###
    var serviceAccount = new Gcp.ServiceAccount.Account("service_account", new()
    {
        Project = "my-project-name",
        AccountId = "firebase-app-hosting-compute",
        DisplayName = "Firebase App Hosting compute service account",
        CreateIgnoreAlreadyExists = true,
    });

    var fah = new Gcp.Projects.Service("fah", new()
    {
        Project = "my-project-name",
        ServiceName = "firebaseapphosting.googleapis.com",
        DisableOnDestroy = false,
    });

    var example = new Gcp.Firebase.AppHostingBackend("example", new()
    {
        Project = "my-project-name",
        Location = "us-central1",
        BackendId = "full",
        AppId = "1:0000000000:web:674cde32020e16fbce9dbd",
        DisplayName = "My Backend",
        ServingLocality = "GLOBAL_ACCESS",
        ServiceAccount = serviceAccount.Email,
        Environment = "prod",
        Annotations = 
        {
            { "key", "value" },
        },
        Labels = 
        {
            { "key", "value" },
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            fah,
        },
    });

    var appHostingSaDeveloperconnect = new Gcp.Projects.IAMMember("app_hosting_sa_developerconnect", new()
    {
        Project = "my-project-name",
        Role = "roles/developerconnect.readTokenAccessor",
        Member = serviceAccount.Member,
    });

    var appHostingSaAdminsdk = new Gcp.Projects.IAMMember("app_hosting_sa_adminsdk", new()
    {
        Project = "my-project-name",
        Role = "roles/firebase.sdkAdminServiceAgent",
        Member = serviceAccount.Member,
    });

    var appHostingSaRunner = new Gcp.Projects.IAMMember("app_hosting_sa_runner", new()
    {
        Project = "my-project-name",
        Role = "roles/firebaseapphosting.computeRunner",
        Member = serviceAccount.Member,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.serviceaccount.Account;
import com.pulumi.gcp.serviceaccount.AccountArgs;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.firebase.AppHostingBackend;
import com.pulumi.gcp.firebase.AppHostingBackendArgs;
import com.pulumi.gcp.projects.IAMMember;
import com.pulumi.gcp.projects.IAMMemberArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        //## Include these blocks only once per project if you are starting from scratch ###
        var serviceAccount = new Account("serviceAccount", AccountArgs.builder()
            .project("my-project-name")
            .accountId("firebase-app-hosting-compute")
            .displayName("Firebase App Hosting compute service account")
            .createIgnoreAlreadyExists(true)
            .build());

        var fah = new Service("fah", ServiceArgs.builder()
            .project("my-project-name")
            .service("firebaseapphosting.googleapis.com")
            .disableOnDestroy(false)
            .build());

        var example = new AppHostingBackend("example", AppHostingBackendArgs.builder()
            .project("my-project-name")
            .location("us-central1")
            .backendId("full")
            .appId("1:0000000000:web:674cde32020e16fbce9dbd")
            .displayName("My Backend")
            .servingLocality("GLOBAL_ACCESS")
            .serviceAccount(serviceAccount.email())
            .environment("prod")
            .annotations(Map.of("key", "value"))
            .labels(Map.of("key", "value"))
            .build(), CustomResourceOptions.builder()
                .dependsOn(fah)
                .build());

        var appHostingSaDeveloperconnect = new IAMMember("appHostingSaDeveloperconnect", IAMMemberArgs.builder()
            .project("my-project-name")
            .role("roles/developerconnect.readTokenAccessor")
            .member(serviceAccount.member())
            .build());

        var appHostingSaAdminsdk = new IAMMember("appHostingSaAdminsdk", IAMMemberArgs.builder()
            .project("my-project-name")
            .role("roles/firebase.sdkAdminServiceAgent")
            .member(serviceAccount.member())
            .build());

        var appHostingSaRunner = new IAMMember("appHostingSaRunner", IAMMemberArgs.builder()
            .project("my-project-name")
            .role("roles/firebaseapphosting.computeRunner")
            .member(serviceAccount.member())
            .build());

    }
}
Copy
resources:
  example:
    type: gcp:firebase:AppHostingBackend
    properties:
      project: my-project-name
      location: us-central1
      backendId: full
      appId: 1:0000000000:web:674cde32020e16fbce9dbd
      displayName: My Backend
      servingLocality: GLOBAL_ACCESS
      serviceAccount: ${serviceAccount.email}
      environment: prod
      annotations:
        key: value
      labels:
        key: value
    options:
      dependsOn:
        - ${fah}
  ### Include these blocks only once per project if you are starting from scratch ###
  serviceAccount:
    type: gcp:serviceaccount:Account
    name: service_account
    properties:
      project: my-project-name
      accountId: firebase-app-hosting-compute
      displayName: Firebase App Hosting compute service account
      createIgnoreAlreadyExists: true
  appHostingSaDeveloperconnect:
    type: gcp:projects:IAMMember
    name: app_hosting_sa_developerconnect
    properties:
      project: my-project-name
      role: roles/developerconnect.readTokenAccessor
      member: ${serviceAccount.member}
  appHostingSaAdminsdk:
    type: gcp:projects:IAMMember
    name: app_hosting_sa_adminsdk
    properties:
      project: my-project-name
      role: roles/firebase.sdkAdminServiceAgent
      member: ${serviceAccount.member}
  appHostingSaRunner:
    type: gcp:projects:IAMMember
    name: app_hosting_sa_runner
    properties:
      project: my-project-name
      role: roles/firebaseapphosting.computeRunner
      member: ${serviceAccount.member}
  fah:
    type: gcp:projects:Service
    properties:
      project: my-project-name
      service: firebaseapphosting.googleapis.com
      disableOnDestroy: false
Copy

Import

Backend can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/backends/{{backend_id}}

  • {{project}}/{{location}}/{{backend_id}}

  • {{location}}/{{backend_id}}

When using the pulumi import command, Backend can be imported using one of the formats above. For example:

$ pulumi import gcp:firebase/appHostingBackend:AppHostingBackend default projects/{{project}}/locations/{{location}}/backends/{{backend_id}}
Copy
$ pulumi import gcp:firebase/appHostingBackend:AppHostingBackend default {{project}}/{{location}}/{{backend_id}}
Copy
$ pulumi import gcp:firebase/appHostingBackend:AppHostingBackend default {{location}}/{{backend_id}}
Copy

Create AppHostingBackend Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AppHostingBackend(name: string, args: AppHostingBackendArgs, opts?: CustomResourceOptions);
@overload
def AppHostingBackend(resource_name: str,
                      args: AppHostingBackendArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def AppHostingBackend(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      app_id: Optional[str] = None,
                      backend_id: Optional[str] = None,
                      location: Optional[str] = None,
                      service_account: Optional[str] = None,
                      serving_locality: Optional[str] = None,
                      annotations: Optional[Mapping[str, str]] = None,
                      codebase: Optional[AppHostingBackendCodebaseArgs] = None,
                      display_name: Optional[str] = None,
                      environment: Optional[str] = None,
                      labels: Optional[Mapping[str, str]] = None,
                      project: Optional[str] = None)
func NewAppHostingBackend(ctx *Context, name string, args AppHostingBackendArgs, opts ...ResourceOption) (*AppHostingBackend, error)
public AppHostingBackend(string name, AppHostingBackendArgs args, CustomResourceOptions? opts = null)
public AppHostingBackend(String name, AppHostingBackendArgs args)
public AppHostingBackend(String name, AppHostingBackendArgs args, CustomResourceOptions options)
type: gcp:firebase:AppHostingBackend
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AppHostingBackendArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AppHostingBackendArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AppHostingBackendArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AppHostingBackendArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AppHostingBackendArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var appHostingBackendResource = new Gcp.Firebase.AppHostingBackend("appHostingBackendResource", new()
{
    AppId = "string",
    BackendId = "string",
    Location = "string",
    ServiceAccount = "string",
    ServingLocality = "string",
    Annotations = 
    {
        { "string", "string" },
    },
    Codebase = new Gcp.Firebase.Inputs.AppHostingBackendCodebaseArgs
    {
        Repository = "string",
        RootDirectory = "string",
    },
    DisplayName = "string",
    Environment = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Project = "string",
});
Copy
example, err := firebase.NewAppHostingBackend(ctx, "appHostingBackendResource", &firebase.AppHostingBackendArgs{
	AppId:           pulumi.String("string"),
	BackendId:       pulumi.String("string"),
	Location:        pulumi.String("string"),
	ServiceAccount:  pulumi.String("string"),
	ServingLocality: pulumi.String("string"),
	Annotations: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Codebase: &firebase.AppHostingBackendCodebaseArgs{
		Repository:    pulumi.String("string"),
		RootDirectory: pulumi.String("string"),
	},
	DisplayName: pulumi.String("string"),
	Environment: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Project: pulumi.String("string"),
})
Copy
var appHostingBackendResource = new AppHostingBackend("appHostingBackendResource", AppHostingBackendArgs.builder()
    .appId("string")
    .backendId("string")
    .location("string")
    .serviceAccount("string")
    .servingLocality("string")
    .annotations(Map.of("string", "string"))
    .codebase(AppHostingBackendCodebaseArgs.builder()
        .repository("string")
        .rootDirectory("string")
        .build())
    .displayName("string")
    .environment("string")
    .labels(Map.of("string", "string"))
    .project("string")
    .build());
Copy
app_hosting_backend_resource = gcp.firebase.AppHostingBackend("appHostingBackendResource",
    app_id="string",
    backend_id="string",
    location="string",
    service_account="string",
    serving_locality="string",
    annotations={
        "string": "string",
    },
    codebase={
        "repository": "string",
        "root_directory": "string",
    },
    display_name="string",
    environment="string",
    labels={
        "string": "string",
    },
    project="string")
Copy
const appHostingBackendResource = new gcp.firebase.AppHostingBackend("appHostingBackendResource", {
    appId: "string",
    backendId: "string",
    location: "string",
    serviceAccount: "string",
    servingLocality: "string",
    annotations: {
        string: "string",
    },
    codebase: {
        repository: "string",
        rootDirectory: "string",
    },
    displayName: "string",
    environment: "string",
    labels: {
        string: "string",
    },
    project: "string",
});
Copy
type: gcp:firebase:AppHostingBackend
properties:
    annotations:
        string: string
    appId: string
    backendId: string
    codebase:
        repository: string
        rootDirectory: string
    displayName: string
    environment: string
    labels:
        string: string
    location: string
    project: string
    serviceAccount: string
    servingLocality: string
Copy

AppHostingBackend Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AppHostingBackend resource accepts the following input properties:

AppId This property is required. string
The ID of a Web App associated with the backend.
BackendId
This property is required.
Changes to this property will trigger replacement.
string
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


Location
This property is required.
Changes to this property will trigger replacement.
string
The canonical IDs of a Google Cloud location such as "us-east1".
ServiceAccount This property is required. string
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
ServingLocality
This property is required.
Changes to this property will trigger replacement.
string
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
Annotations Dictionary<string, string>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
Codebase AppHostingBackendCodebase
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
DisplayName string
Human-readable name. 63 character limit.
Environment string
The environment name of the backend, used to load environment variables from environment specific configuration.
Labels Dictionary<string, string>
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
AppId This property is required. string
The ID of a Web App associated with the backend.
BackendId
This property is required.
Changes to this property will trigger replacement.
string
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


Location
This property is required.
Changes to this property will trigger replacement.
string
The canonical IDs of a Google Cloud location such as "us-east1".
ServiceAccount This property is required. string
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
ServingLocality
This property is required.
Changes to this property will trigger replacement.
string
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
Annotations map[string]string
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
Codebase AppHostingBackendCodebaseArgs
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
DisplayName string
Human-readable name. 63 character limit.
Environment string
The environment name of the backend, used to load environment variables from environment specific configuration.
Labels map[string]string
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
appId This property is required. String
The ID of a Web App associated with the backend.
backendId
This property is required.
Changes to this property will trigger replacement.
String
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


location
This property is required.
Changes to this property will trigger replacement.
String
The canonical IDs of a Google Cloud location such as "us-east1".
serviceAccount This property is required. String
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
servingLocality
This property is required.
Changes to this property will trigger replacement.
String
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
annotations Map<String,String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
codebase AppHostingBackendCodebase
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
displayName String
Human-readable name. 63 character limit.
environment String
The environment name of the backend, used to load environment variables from environment specific configuration.
labels Map<String,String>
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
appId This property is required. string
The ID of a Web App associated with the backend.
backendId
This property is required.
Changes to this property will trigger replacement.
string
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


location
This property is required.
Changes to this property will trigger replacement.
string
The canonical IDs of a Google Cloud location such as "us-east1".
serviceAccount This property is required. string
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
servingLocality
This property is required.
Changes to this property will trigger replacement.
string
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
annotations {[key: string]: string}
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
codebase AppHostingBackendCodebase
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
displayName string
Human-readable name. 63 character limit.
environment string
The environment name of the backend, used to load environment variables from environment specific configuration.
labels {[key: string]: string}
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
app_id This property is required. str
The ID of a Web App associated with the backend.
backend_id
This property is required.
Changes to this property will trigger replacement.
str
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


location
This property is required.
Changes to this property will trigger replacement.
str
The canonical IDs of a Google Cloud location such as "us-east1".
service_account This property is required. str
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
serving_locality
This property is required.
Changes to this property will trigger replacement.
str
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
annotations Mapping[str, str]
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
codebase AppHostingBackendCodebaseArgs
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
display_name str
Human-readable name. 63 character limit.
environment str
The environment name of the backend, used to load environment variables from environment specific configuration.
labels Mapping[str, str]
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
appId This property is required. String
The ID of a Web App associated with the backend.
backendId
This property is required.
Changes to this property will trigger replacement.
String
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


location
This property is required.
Changes to this property will trigger replacement.
String
The canonical IDs of a Google Cloud location such as "us-east1".
serviceAccount This property is required. String
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
servingLocality
This property is required.
Changes to this property will trigger replacement.
String
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
annotations Map<String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
codebase Property Map
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
displayName String
Human-readable name. 63 character limit.
environment String
The environment name of the backend, used to load environment variables from environment specific configuration.
labels Map<String>
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the AppHostingBackend resource produces the following output properties:

CreateTime string
Time at which the backend was created.
DeleteTime string
Time at which the backend was deleted.
EffectiveAnnotations Dictionary<string, string>
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Etag string
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
Id string
The provider-assigned unique ID for this managed resource.
ManagedResources List<AppHostingBackendManagedResource>
A list of the resources managed by this backend. Structure is documented below.
Name string
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
Uid string
System-assigned, unique identifier.
UpdateTime string
Time at which the backend was last updated.
Uri string
The primary URI to communicate with the backend.
CreateTime string
Time at which the backend was created.
DeleteTime string
Time at which the backend was deleted.
EffectiveAnnotations map[string]string
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Etag string
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
Id string
The provider-assigned unique ID for this managed resource.
ManagedResources []AppHostingBackendManagedResource
A list of the resources managed by this backend. Structure is documented below.
Name string
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
Uid string
System-assigned, unique identifier.
UpdateTime string
Time at which the backend was last updated.
Uri string
The primary URI to communicate with the backend.
createTime String
Time at which the backend was created.
deleteTime String
Time at which the backend was deleted.
effectiveAnnotations Map<String,String>
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag String
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
id String
The provider-assigned unique ID for this managed resource.
managedResources List<AppHostingBackendManagedResource>
A list of the resources managed by this backend. Structure is documented below.
name String
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
uid String
System-assigned, unique identifier.
updateTime String
Time at which the backend was last updated.
uri String
The primary URI to communicate with the backend.
createTime string
Time at which the backend was created.
deleteTime string
Time at which the backend was deleted.
effectiveAnnotations {[key: string]: string}
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag string
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
id string
The provider-assigned unique ID for this managed resource.
managedResources AppHostingBackendManagedResource[]
A list of the resources managed by this backend. Structure is documented below.
name string
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
uid string
System-assigned, unique identifier.
updateTime string
Time at which the backend was last updated.
uri string
The primary URI to communicate with the backend.
create_time str
Time at which the backend was created.
delete_time str
Time at which the backend was deleted.
effective_annotations Mapping[str, str]
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag str
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
id str
The provider-assigned unique ID for this managed resource.
managed_resources Sequence[AppHostingBackendManagedResource]
A list of the resources managed by this backend. Structure is documented below.
name str
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
uid str
System-assigned, unique identifier.
update_time str
Time at which the backend was last updated.
uri str
The primary URI to communicate with the backend.
createTime String
Time at which the backend was created.
deleteTime String
Time at which the backend was deleted.
effectiveAnnotations Map<String>
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag String
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
id String
The provider-assigned unique ID for this managed resource.
managedResources List<Property Map>
A list of the resources managed by this backend. Structure is documented below.
name String
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
uid String
System-assigned, unique identifier.
updateTime String
Time at which the backend was last updated.
uri String
The primary URI to communicate with the backend.

Look up Existing AppHostingBackend Resource

Get an existing AppHostingBackend resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AppHostingBackendState, opts?: CustomResourceOptions): AppHostingBackend
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        annotations: Optional[Mapping[str, str]] = None,
        app_id: Optional[str] = None,
        backend_id: Optional[str] = None,
        codebase: Optional[AppHostingBackendCodebaseArgs] = None,
        create_time: Optional[str] = None,
        delete_time: Optional[str] = None,
        display_name: Optional[str] = None,
        effective_annotations: Optional[Mapping[str, str]] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        environment: Optional[str] = None,
        etag: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        managed_resources: Optional[Sequence[AppHostingBackendManagedResourceArgs]] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        service_account: Optional[str] = None,
        serving_locality: Optional[str] = None,
        uid: Optional[str] = None,
        update_time: Optional[str] = None,
        uri: Optional[str] = None) -> AppHostingBackend
func GetAppHostingBackend(ctx *Context, name string, id IDInput, state *AppHostingBackendState, opts ...ResourceOption) (*AppHostingBackend, error)
public static AppHostingBackend Get(string name, Input<string> id, AppHostingBackendState? state, CustomResourceOptions? opts = null)
public static AppHostingBackend get(String name, Output<String> id, AppHostingBackendState state, CustomResourceOptions options)
resources:  _:    type: gcp:firebase:AppHostingBackend    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Annotations Dictionary<string, string>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
AppId string
The ID of a Web App associated with the backend.
BackendId Changes to this property will trigger replacement. string
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


Codebase AppHostingBackendCodebase
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
CreateTime string
Time at which the backend was created.
DeleteTime string
Time at which the backend was deleted.
DisplayName string
Human-readable name. 63 character limit.
EffectiveAnnotations Dictionary<string, string>
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Environment string
The environment name of the backend, used to load environment variables from environment specific configuration.
Etag string
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
Labels Dictionary<string, string>
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Location Changes to this property will trigger replacement. string
The canonical IDs of a Google Cloud location such as "us-east1".
ManagedResources List<AppHostingBackendManagedResource>
A list of the resources managed by this backend. Structure is documented below.
Name string
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
ServiceAccount string
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
ServingLocality Changes to this property will trigger replacement. string
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
Uid string
System-assigned, unique identifier.
UpdateTime string
Time at which the backend was last updated.
Uri string
The primary URI to communicate with the backend.
Annotations map[string]string
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
AppId string
The ID of a Web App associated with the backend.
BackendId Changes to this property will trigger replacement. string
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


Codebase AppHostingBackendCodebaseArgs
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
CreateTime string
Time at which the backend was created.
DeleteTime string
Time at which the backend was deleted.
DisplayName string
Human-readable name. 63 character limit.
EffectiveAnnotations map[string]string
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Environment string
The environment name of the backend, used to load environment variables from environment specific configuration.
Etag string
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
Labels map[string]string
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Location Changes to this property will trigger replacement. string
The canonical IDs of a Google Cloud location such as "us-east1".
ManagedResources []AppHostingBackendManagedResourceArgs
A list of the resources managed by this backend. Structure is documented below.
Name string
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
ServiceAccount string
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
ServingLocality Changes to this property will trigger replacement. string
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
Uid string
System-assigned, unique identifier.
UpdateTime string
Time at which the backend was last updated.
Uri string
The primary URI to communicate with the backend.
annotations Map<String,String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
appId String
The ID of a Web App associated with the backend.
backendId Changes to this property will trigger replacement. String
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


codebase AppHostingBackendCodebase
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
createTime String
Time at which the backend was created.
deleteTime String
Time at which the backend was deleted.
displayName String
Human-readable name. 63 character limit.
effectiveAnnotations Map<String,String>
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
environment String
The environment name of the backend, used to load environment variables from environment specific configuration.
etag String
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
labels Map<String,String>
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. String
The canonical IDs of a Google Cloud location such as "us-east1".
managedResources List<AppHostingBackendManagedResource>
A list of the resources managed by this backend. Structure is documented below.
name String
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
serviceAccount String
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
servingLocality Changes to this property will trigger replacement. String
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
uid String
System-assigned, unique identifier.
updateTime String
Time at which the backend was last updated.
uri String
The primary URI to communicate with the backend.
annotations {[key: string]: string}
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
appId string
The ID of a Web App associated with the backend.
backendId Changes to this property will trigger replacement. string
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


codebase AppHostingBackendCodebase
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
createTime string
Time at which the backend was created.
deleteTime string
Time at which the backend was deleted.
displayName string
Human-readable name. 63 character limit.
effectiveAnnotations {[key: string]: string}
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
environment string
The environment name of the backend, used to load environment variables from environment specific configuration.
etag string
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
labels {[key: string]: string}
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. string
The canonical IDs of a Google Cloud location such as "us-east1".
managedResources AppHostingBackendManagedResource[]
A list of the resources managed by this backend. Structure is documented below.
name string
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
serviceAccount string
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
servingLocality Changes to this property will trigger replacement. string
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
uid string
System-assigned, unique identifier.
updateTime string
Time at which the backend was last updated.
uri string
The primary URI to communicate with the backend.
annotations Mapping[str, str]
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
app_id str
The ID of a Web App associated with the backend.
backend_id Changes to this property will trigger replacement. str
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


codebase AppHostingBackendCodebaseArgs
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
create_time str
Time at which the backend was created.
delete_time str
Time at which the backend was deleted.
display_name str
Human-readable name. 63 character limit.
effective_annotations Mapping[str, str]
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
environment str
The environment name of the backend, used to load environment variables from environment specific configuration.
etag str
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
labels Mapping[str, str]
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. str
The canonical IDs of a Google Cloud location such as "us-east1".
managed_resources Sequence[AppHostingBackendManagedResourceArgs]
A list of the resources managed by this backend. Structure is documented below.
name str
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
service_account str
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
serving_locality Changes to this property will trigger replacement. str
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
uid str
System-assigned, unique identifier.
update_time str
Time at which the backend was last updated.
uri str
The primary URI to communicate with the backend.
annotations Map<String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
appId String
The ID of a Web App associated with the backend.
backendId Changes to this property will trigger replacement. String
Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.


codebase Property Map
The connection to an external source repository to watch for event-driven updates to the backend. Structure is documented below.
createTime String
Time at which the backend was created.
deleteTime String
Time at which the backend was deleted.
displayName String
Human-readable name. 63 character limit.
effectiveAnnotations Map<String>
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
environment String
The environment name of the backend, used to load environment variables from environment specific configuration.
etag String
Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
labels Map<String>
Unstructured key value map that can be used to organize and categorize objects. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. String
The canonical IDs of a Google Cloud location such as "us-east1".
managedResources List<Property Map>
A list of the resources managed by this backend. Structure is documented below.
name String
Identifier. The resource name of the backend. Format: projects/{project}/locations/{locationId}/backends/{backendId}.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
serviceAccount String
The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
servingLocality Changes to this property will trigger replacement. String
Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting's global-replicated serving infrastructure (GLOBAL_ACCESS). Possible values are: REGIONAL_STRICT, GLOBAL_ACCESS.
uid String
System-assigned, unique identifier.
updateTime String
Time at which the backend was last updated.
uri String
The primary URI to communicate with the backend.

Supporting Types

AppHostingBackendCodebase
, AppHostingBackendCodebaseArgs

Repository This property is required. string
The resource name for the Developer Connect gitRepositoryLink connected to this backend, in the format: projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}
RootDirectory string
If repository is provided, the directory relative to the root of the repository to use as the root for the deployed web app.
Repository This property is required. string
The resource name for the Developer Connect gitRepositoryLink connected to this backend, in the format: projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}
RootDirectory string
If repository is provided, the directory relative to the root of the repository to use as the root for the deployed web app.
repository This property is required. String
The resource name for the Developer Connect gitRepositoryLink connected to this backend, in the format: projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}
rootDirectory String
If repository is provided, the directory relative to the root of the repository to use as the root for the deployed web app.
repository This property is required. string
The resource name for the Developer Connect gitRepositoryLink connected to this backend, in the format: projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}
rootDirectory string
If repository is provided, the directory relative to the root of the repository to use as the root for the deployed web app.
repository This property is required. str
The resource name for the Developer Connect gitRepositoryLink connected to this backend, in the format: projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}
root_directory str
If repository is provided, the directory relative to the root of the repository to use as the root for the deployed web app.
repository This property is required. String
The resource name for the Developer Connect gitRepositoryLink connected to this backend, in the format: projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}
rootDirectory String
If repository is provided, the directory relative to the root of the repository to use as the root for the deployed web app.

AppHostingBackendManagedResource
, AppHostingBackendManagedResourceArgs

RunServices List<AppHostingBackendManagedResourceRunService>
(Output) A managed Cloud Run service. Structure is documented below.
RunServices []AppHostingBackendManagedResourceRunService
(Output) A managed Cloud Run service. Structure is documented below.
runServices List<AppHostingBackendManagedResourceRunService>
(Output) A managed Cloud Run service. Structure is documented below.
runServices AppHostingBackendManagedResourceRunService[]
(Output) A managed Cloud Run service. Structure is documented below.
run_services Sequence[AppHostingBackendManagedResourceRunService]
(Output) A managed Cloud Run service. Structure is documented below.
runServices List<Property Map>
(Output) A managed Cloud Run service. Structure is documented below.

AppHostingBackendManagedResourceRunService
, AppHostingBackendManagedResourceRunServiceArgs

Service string
(Output) The name of the Cloud Run service, in the format: projects/{project}/locations/{location}/services/{serviceId}
Service string
(Output) The name of the Cloud Run service, in the format: projects/{project}/locations/{location}/services/{serviceId}
service String
(Output) The name of the Cloud Run service, in the format: projects/{project}/locations/{location}/services/{serviceId}
service string
(Output) The name of the Cloud Run service, in the format: projects/{project}/locations/{location}/services/{serviceId}
service str
(Output) The name of the Cloud Run service, in the format: projects/{project}/locations/{location}/services/{serviceId}
service String
(Output) The name of the Cloud Run service, in the format: projects/{project}/locations/{location}/services/{serviceId}

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.