Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Add preview provider section with google-native and minor fix to sample code #82

Merged
merged 3 commits into from
Apr 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import * as pulumi from "@pulumi/pulumi";

const config = new pulumi.Config("google-native");
const project = config.require("project");
const bucketName = "pulumi-google-native-ts-01";
const bucketName = "pulumi-goog-native-ts-01";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Google Cloud restricts naming buckets with "google" in the name...


// Create a Google Cloud resource (Storage Bucket)
const bucket = new storage.Bucket("my-bucket", {
Expand All @@ -69,7 +69,7 @@ from pulumi_google_native.storage import v1 as storage
config = pulumi.Config()
project = config.require('project')
# Create a Google Cloud resource (Storage Bucket)
bucket_name = "google-native-bucket-py-01"
bucket_name = "pulumi-goog-native-bucket-py-01"
bucket = storage.Bucket('my-bucket', name=bucket_name, bucket=bucket_name, project=project)

# Export the bucket self-link
Expand All @@ -88,7 +88,7 @@ import (
)

func main() {
const bucketName = "google-native-bucket-go-01"
const bucketName = "pulumi-goog-native-bucket-go-01"
pulumi.Run(func(ctx *pulumi.Context) error {
conf := config.New(ctx, "google-native")
project := conf.Require("project")
Expand Down Expand Up @@ -123,7 +123,7 @@ class Program
Deployment.Run(() => {
var config = new Config("google-native");
var project = config.Require("project");
var bucketName = "google-native-bucket-cs-01";
var bucketName = "pulumi-goog-native-bucket-cs-01";
// Create a Google Cloud resource (Storage Bucket)
var bucket = new Bucket("my-bucket", new BucketArgs{
Name = bucketName,
Expand Down
5 changes: 5 additions & 0 deletions themes/default/content/docs/reference/pkg/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ explore what's possible, you've come to the right place.

{{< resource-providers "azure" >}}

### Preview Providers

{{< resource-providers "google-native" >}}


## Package Documentation

SDK reference documentation, organized by language.
Expand Down
7 changes: 7 additions & 0 deletions themes/default/static/logos/pkg/google-native.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.