### Generate SDKs Source: https://github.com/pulumi/pulumi-gcp/blob/master/CONTRIBUTING.md Run this command from the repository root to generate and update SDKs after making changes to resources. ```bash make build_sdks ``` -------------------------------- ### Update Go Dependencies Source: https://github.com/pulumi/pulumi-gcp/blob/master/CONTRIBUTING.md Execute this command in the provider directory to ensure dependencies are synchronized if SDK generation produces unexpected diffs. ```bash go mod tidy ``` -------------------------------- ### Run Integration Tests Source: https://github.com/pulumi/pulumi-gcp/blob/master/CONTRIBUTING.md Execute the full suite of integration tests after configuring required GCP environment variables. ```bash make test_all ``` -------------------------------- ### Set GCP Project Configuration Source: https://github.com/pulumi/pulumi-gcp/blob/master/provider/errors/no_project.txt Configures the default GCP project for Pulumi resources. ```bash pulumi config set gcp:project ``` -------------------------------- ### Create a GCP Storage Bucket Source: https://github.com/pulumi/pulumi-gcp/blob/master/docs/_index.md Provision a new Google Cloud Storage bucket using the Pulumi GCP provider. ```javascript const gcp = require("@pulumi/gcp") const bucket = new gcp.storage.Bucket("my-bucket"); ``` ```typescript import * as gcp from "@pulumi/gcp"; const bucket = new gcp.storage.Bucket("my-bucket"); ``` ```python from pulumi_gcp import storage bucket = storage.Bucket('my-bucket') ``` ```go import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/storage" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { bucket, err := storage.NewBucket(ctx, "my-bucket", nil) if err != nil { return err } return nil }) } ``` ```csharp using Pulumi; using Gcp = Pulumi.Gcp; await Deployment.RunAsync(() => { var bucket = new Gcp.Storage.Bucket("my-bucket"); }); ``` ```java import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.gcp.storage.Bucket; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } private static void stack(Context ctx) { final var bucket = new Bucket("my-bucket"); ctx.export("bucketName", bucket.name()); } } ``` ```yaml resources: my-bucket: type: gcp:storage:Bucket ``` -------------------------------- ### Import ESC Environment into Stack Source: https://github.com/pulumi/pulumi-gcp/blob/master/docs/installation-configuration.md Reference an ESC environment in the Pulumi stack configuration file. ```yaml environment: - ``` -------------------------------- ### Configure OIDC for Pulumi ESC Source: https://github.com/pulumi/pulumi-gcp/blob/master/docs/installation-configuration.md Define the GCP login configuration and environment variables within a Pulumi ESC environment file. ```yaml values: gcp: login: fn::open::gcp-login: project: oidc: workloadPoolId: providerId: serviceAccount: environmentVariables: GOOGLE_OAUTH_ACCESS_TOKEN: ${gcp.login.accessToken} GOOGLE_PROJECT: ${gcp.login.project} GOOGLE_REGION: GOOGLE_ZONE: ``` -------------------------------- ### Disable Global Project Warning Source: https://github.com/pulumi/pulumi-gcp/blob/master/provider/errors/no_project.txt Suppresses the warning message when a global GCP project setting is not detected. ```bash pulumi config set gcp:disableGlobalProjectWarning true ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.