PulumiCrossCloud.Gcp
0.1.2-alpha.20261109221101
dotnet add package PulumiCrossCloud.Gcp --version 0.1.2-alpha.20261109221101
NuGet\Install-Package PulumiCrossCloud.Gcp -Version 0.1.2-alpha.20261109221101
<PackageReference Include="PulumiCrossCloud.Gcp" Version="0.1.2-alpha.20261109221101" />
<PackageVersion Include="PulumiCrossCloud.Gcp" Version="0.1.2-alpha.20261109221101" />
<PackageReference Include="PulumiCrossCloud.Gcp" />
paket add PulumiCrossCloud.Gcp --version 0.1.2-alpha.20261109221101
#r "nuget: PulumiCrossCloud.Gcp, 0.1.2-alpha.20261109221101"
#:package PulumiCrossCloud.Gcp@0.1.2-alpha.20261109221101
#addin nuget:?package=PulumiCrossCloud.Gcp&version=0.1.2-alpha.20261109221101&prerelease
#tool nuget:?package=PulumiCrossCloud.Gcp&version=0.1.2-alpha.20261109221101&prerelease
PulumiCrossCloud.Gcp
This project provides GCP (Google Cloud Platform) resource implementations for the PulumiCrossCloud library, enabling cloud-agnostic infrastructure as code using Pulumi and .NET.
Getting Started: Setting Up GCP for Pulumi
If you've never used GCP before, follow these steps to set up authentication and permissions for Pulumi deployments:
1. Create a Google Cloud Project
- Go to Google Cloud Console
- Click the project dropdown (top left) and select "New Project"
- Give your project a name and click "Create"
2. Create a Service Account
- Go to IAM & Admin > Service Accounts
- Click "Create Service Account"
- Name it (e.g.,
pulumi-admin) - Click "Create and Continue"
- Grant these roles:
- Owner (for full admin access, recommended for initial setup)
- Or, for least privilege, add:
- Cloud Run Admin
- Artifact Registry Admin
- Secret Manager Admin
- Service Account Admin
- Click "Done"
3. Create and Download a Service Account Key
- In the Service Accounts list, click your new account
- Go to the Keys tab
- Click "Add Key" > "Create new key"
- Choose JSON and click "Create"
- Download the JSON file and save it securely (e.g., as
gcp-pulumi-key.json)
4. Set Up Authentication for Pulumi
- Install the Google Cloud SDK (optional, for CLI access)
- Set the environment variable for Pulumi:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/gcp-pulumi-key.json - Or, configure Pulumi directly in your stack config:
config: gcp:project: <your-project-id> gcp:region: <your-region> gcp:credentials: /path/to/gcp-pulumi-key.json
5. Install .NET and Pulumi CLI
6. Run the Sample
- Navigate to the sample project:
cd samples/PulumiCrossCloud.Samples.Gcp pulumi up
Letting a Deployment Pipeline Own the Cloud Run Image
When a CD pipeline deploys new revisions of the container, Pulumi and the pipeline both end up
owning the running image, and whichever ran last wins — a pulumi up after a deploy rolls the
service back to the tag the stack was pinned to.
Set ImageDeployedByPipeline to hand the image to the pipeline. Pulumi still creates the service
from imageTag the first time, because Cloud Run cannot start a revision without an image, but
afterwards it neither diffs nor reverts whichever revision the pipeline rolled out. Everything else
about the service — scaling, memory, environment, secrets, IAM, domain mappings — stays Pulumi's.
var api = factory.CreateCompute("api", registry, "api", imageTag: "bootstrap");
api.MinCount = 1;
api.MemoryLimit = "1Gi";
api.ImageDeployedByPipeline = true; // CD owns which revision runs
api.Build();
The pipeline can then push and deploy a single :<git-sha> tag; there is no need to also push the
tag the stack was pinned to just to keep pulumi up from undoing the deploy.
Troubleshooting
- Make sure your service account has the correct roles and the key file path is correct.
- If you see permission errors, check IAM roles and API enablement.
- For more details, see Pulumi GCP Provider Docs
Resources
PulumiCrossCloud makes it easy to deploy the same infrastructure code to AWS, Azure, or GCP. Just switch the factory and run your stack!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Google.Apis.Auth (>= 1.77.0)
- Google.Apis.CloudRun.v1 (>= 1.77.0.4306)
- Google.Cloud.SecretManager.V1 (>= 2.8.0)
- OpenTelemetry.Api (>= 1.20.1)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.20.1)
- Pulumi.Gcp (>= 10.2.0)
- Pulumi.Random (>= 4.21.4)
- PulumiCrossCloud.Core (>= 0.1.2-alpha.20261109221101)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PulumiCrossCloud.Gcp:
| Package | Downloads |
|---|---|
|
PulumiCrossCloud
Meta-package that installs the full PulumiCrossCloud package set. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.2-alpha.20261109221101 | 124 | 11/9/2026 |
| 0.1.2-alpha.20260930021800 | 128 | 9/30/2026 |
| 0.1.2-alpha.20260824130519 | 116 | 8/24/2026 |
| 0.1.2-alpha.20260824124550 | 101 | 8/24/2026 |
| 0.1.1-alpha.20260822183226 | 123 | 8/22/2026 |
| 0.1.1-alpha.20260822082210 | 81 | 8/22/2026 |
| 0.1.1-alpha.20260822080343 | 101 | 8/22/2026 |
| 0.1.1-alpha.20260720035123 | 106 | 7/20/2026 |
| 0.1.1-alpha.20260703085317 | 105 | 7/3/2026 |
| 0.1.1-alpha.20260703084517 | 94 | 7/3/2026 |
| 0.1.0-alpha.alpha... | 92 | 7/3/2026 |
| 0.1.0-alpha.alpha... | 101 | 7/3/2026 |
| 0.1.0-alpha.20260703083554 | 96 | 7/3/2026 |