firebase_app_hosting library
Firebase App Hosting — Cloud Run-backed successor to classic Firebase Hosting. Backends, build artifacts, custom domains, traffic split.
Classes
- AppHostingBackendCodebase
-
codebaseblock. Links the backend to a Developer Connect-managed git repository, so commits flowing into the configured branch trigger builds (seeGoogleFirebaseAppHostingTraffic.rolloutPolicy). - AppHostingBuildSource
-
sourceblock (required, max_items=1). Sealed dispatch over the schema's two mutually exclusive sub-blocks: pick a commit from the backend's Developer Connect repository (AppHostingBuildSourceCodebase) OR point at a prebuilt Artifact Registry image (AppHostingBuildSourceContainer). - AppHostingBuildSourceCodebase
-
source.codebasesub-block. Specify the commit by branch (build at branch HEAD) and/or commit (pin to a specific SHA). The schema does not enforce a one-of, but the API ignores both being null. - AppHostingBuildSourceContainer
-
source.containersub-block. Skips the Cloud Build step and uses the supplied Artifact Registry image directly for the Cloud Run revision. - AppHostingDomainRedirect
-
serve.redirectsub-block. Returns an HTTP 3xx redirect for every request hitting this domain. - AppHostingDomainServe
-
serveblock. When omitted (the default), the domain serves the backend's live content. When set, the redirect sub-block takes over -- requests are answered with an HTTP 3xx response pointing at the configured URI. - AppHostingTrafficRolloutPolicy
-
rollout_policyblock. Drives automated builds and rollouts off a git branch in the backend's linked Developer Connect repository. When omitted, the backend never auto-rolls out -- builds are triggered exclusively by explicit GoogleFirebaseAppHostingBuild resources. - AppHostingTrafficSplit
-
One entry in
target.splits. Pairs a build with the percentage of traffic it should receive. - AppHostingTrafficTarget
-
targetblock. Manually pin the desired traffic split across builds. The state'scurrentfield eventually reconverges to this value. Split percentages must sum to 100, and per the provider's current schema each individual entry must be exactly 0 or 100 (so today this behaves as "single live build" rather than a true weighted split). - GoogleFirebaseAppHostingBackend
-
Factory wrapper for
google_firebase_app_hosting_backend(providerhashicorp/google ~> 7.0). - GoogleFirebaseAppHostingBuild
-
Factory wrapper for
google_firebase_app_hosting_build(providerhashicorp/google ~> 7.0). - GoogleFirebaseAppHostingDefaultDomain
-
Factory wrapper for
google_firebase_app_hosting_default_domain(providerhashicorp/google ~> 7.0). - GoogleFirebaseAppHostingDomain
-
Factory wrapper for
google_firebase_app_hosting_domain(providerhashicorp/google ~> 7.0). - GoogleFirebaseAppHostingTraffic
-
Factory wrapper for
google_firebase_app_hosting_traffic(providerhashicorp/google ~> 7.0).
Enums
- AppHostingServingLocality
-
serving_locality-- where App Hosting will serve content from. Set on create; immutable thereafter (changing forces replacement).regionalStrictpins serving to the backend'slocation;globalAccesslets App Hosting replicate across its global edge fleet.