Repository navigation
Publish Package Metadata gcp@v10.6.0 - #13753
Merged
Merged
Conversation
pulumi-bot
enabled auto-merge (squash)
December 2, 2026 11:43
Contributor
✅
|
| check | command | |
|---|---|---|
| docs generate | ✅ | resourcedocsgen metadata from-urls |
| publisher listed | ✅ | Pulumi is a key in publisher-names.json |
Owner Pulumi
Doc-lint ✅ clean. No relative images or raw HTML.
Provider docs (source as published):
_index.md · 160 lines · open full file
---
# WARNING: this file was fetched from https://raw.githubusercontent.com/pulumi/pulumi-gcp/v10.6.0/docs/_index.md
# Do not edit by hand unless you're certain you know what you are doing!
edit_url: https://github.com/pulumi/pulumi-gcp/blob/v10.6.0/docs/_index.md
title: Google Cloud (GCP)
meta_desc: Learn how to use Pulumi's GCP Provider to reduce the complexity of managing and provisioning GCP resources.
layout: package
---
The Google Cloud Platform (GCP) provider for Pulumi can provision many of the cloud resources available in [Google Cloud](https://cloud.google.com/).
The GCP provider must be configured with credentials to deploy and update resources in Google Cloud; see [Installation & Configuration](./installation-configuration) for instructions.
**New to Pulumi and Google Cloud?** [Get started with Google Cloud using our tutorial](/up/?cloud=gcp)
## Example
{{< chooser language "typescript,python,go,csharp,java,yaml,hcl" >}}
{{% choosable language typescript %}}
```typescript
import * as gcp from "@pulumi/gcp";
const bucket = new gcp.storage.Bucket("my-bucket", {
location: "US",
});
export const bucketName = bucket.name;
```
{{% /choosable %}}
{{% choosable language python %}}
```python
import pulumi
from pulumi_gcp import storage
bucket = storage.Bucket("my-bucket", location="US")
pulumi.export("bucket_name", bucket.name)
```
{{% /choosable %}}
{{% choosable language go %}}
```go
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
bucket, err := storage.NewBucket(ctx, "my-bucket", &storage.BucketArgs{
Location: pulumi.String("US"),
})
if err != nil {
return err
}
ctx.Export("bucketName", bucket.Name)
return nil
})
}
```
{{% /choosable %}}
{{% choosable language csharp %}}
```csharp
using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var bucket = new Gcp.Storage.Bucket("my-bucket", new()
{
Location = "US",
});
return new Dictionary<string, object?>
{
["bucketName"] = bucket.Name,
};
});
```
{{% /choosable %}}
{{% choosable language java %}}
```java
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
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", BucketArgs.builder()
.location("US")
.build());
ctx.export("bucketName", bucket.name());
}
}
```
{{% /choosable %}}
{{% choosable language yaml %}}
```yaml
resources:
my-bucket:
type: gcp:storage:Bucket
properties:
location: US
outputs:
bucketName: ${my-bucket.name}
```
{{% /choosable %}}
{{% choosable language hcl %}}
```hcl
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_storage_bucket" "my-bucket" {
location = "US"
}
output "bucketName" {
value = gcp_storage_bucket.my-bucket.name
}
```
{{% /choosable %}}
{{< /chooser >}}
Visit the [Guides](./guides/) for major-version migration guides, and the [examples](https://www.pulumi.com/dev/examples/) for scenarios like Cloud Functions and GKE.
Checked PR head 6e8ef5af9ad1 · full run & command output
Contributor
|
Your site preview for commit cb3415c is ready! 🎉 http://registry--origin-pr-13753-cb3415c9.s3-website.us-west-2.amazonaws.com/registry/ Changed pages: |
Contributor
|
Site previews for this pull request have been removed. ✨ |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.