@pattform/api-kit 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,7 +60,8 @@ class GcpProjectComponent extends pulumi.ComponentResource {
60
60
  }
61
61
  }
62
62
  exports.GcpProjectComponent = GcpProjectComponent;
63
- // Backend defaults: Cloud Run + Firestore + Storage + Artifact Registry.
63
+ // Backend defaults: Cloud Run + Firestore + Storage + Artifact Registry, plus
64
+ // Firebase Hosting, which HostedApiComponent uses as the API edge.
64
65
  const DEFAULT_SERVICES = [
65
66
  "run.googleapis.com",
66
67
  "firestore.googleapis.com",
@@ -68,12 +69,17 @@ const DEFAULT_SERVICES = [
68
69
  "storage.googleapis.com",
69
70
  "iam.googleapis.com",
70
71
  "iamcredentials.googleapis.com",
72
+ "firebase.googleapis.com",
73
+ "firebasehosting.googleapis.com",
71
74
  ];
72
75
  // Project roles the deploy SA needs to create those resources from Pulumi.
76
+ // firebasehosting.admin lets it stand up the HostedApiComponent edge (site,
77
+ // version, release, custom domain); without it HostingSite creation 403s.
73
78
  const DEFAULT_DEPLOY_ROLES = [
74
79
  "roles/run.admin",
75
80
  "roles/datastore.owner",
76
81
  "roles/storage.admin",
77
82
  "roles/artifactregistry.admin",
78
83
  "roles/iam.serviceAccountUser",
84
+ "roles/firebasehosting.admin",
79
85
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pattform/api-kit",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "Pulumi infra library for building and deploying an API",
5
5
  "author": "Pattform <contact@pattform.io>",
6
6
  "license": "SEE LICENSE IN LICENSE",