Skip to main content

No project description provided

Project description

Google Cloud Platform Scaffolding

This repo is a Pulumi Package used to deploy create a Google Cloud Project, connect it to a billing account and be able to enable any APIs for the project

It's written in Go, but thanks to Pulumi's multi language SDK generating capability, it create usable SDKs for all of Pulumi's supported languages

:warning: This package is a work in progress: Please do not use this in a production environment!

Building and Installing

Building from source

But if you need to build it yourself, just download this repository, install Task:

go get github.com/go-task/task/v3/cmd/task

And run the following command to build and install the plugin in the correct folder (resolved automatically based on the current Operating System):

task install

Install Plugin Binary

Before you begin, you'll need to install the latest version of the Pulumi Plugin using pulumi plugin install:

pulumi plugin install resource gcp-scaffold v0.3.0 --server https://cobraz.jfrog.io/artifactory/pulumi-packages/pulumi-gcp-scaffold

This installs the plugin into ~/.pulumi/plugins.

Install your chosen SDK

Next, you need to install your desired language SDK using your languages package manager.

Python

pip3 install cobraz-pulumi-gcp-scaffold

NodeJS

npm install @cobraz/pulumi-gcp-scaffold

DotNet

Coming Soon

Go

go get -t github.com/cobraz/pulumi-gcp-scaffold/sdk/go/gcp

Usage

Once you've installed all the dependencies, you can use the library like any other Pulumi SDK. See the examples directory for examples of how you might use it.

To create a Google Cloud Project and enable some APIs then you would use the following example:

import * as pulumi from "@pulumi/pulumi";
import * as scaffold from "@cobraz/pulumi-gcp-scaffold";

const proj = new scaffold.Project("my-project", {
    projectID: "my-project-name",
    orgID: "<my gcp org id>",
    billingAccountID: "<my billing account id>",
    activatedApis: [
        "compute.googleapis.com",
        "container.googleapis.com",
        "cloudbilling.googleapis.com"
    ]
})

export const projectName = proj.projectName;
export const projectID = proj.projectID;

Limitations

This package currently requires the user to be aware of the orgID and billingAccountID. There are plans to make this easier.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cobraz_pulumi_gcp_scaffold-0.3.5.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file cobraz_pulumi_gcp_scaffold-0.3.5.tar.gz.

File metadata

  • Download URL: cobraz_pulumi_gcp_scaffold-0.3.5.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for cobraz_pulumi_gcp_scaffold-0.3.5.tar.gz
Algorithm Hash digest
SHA256 ed83120112cd1aff89c93d4c17f634684ed6a39b628e1c6687fc7897f32f2d0f
MD5 a7be06998305ecf4f536689fba9650ad
BLAKE2b-256 2d6b67d937f7e11974f1ae083e15ab746add9ff5e39f3846d6140a021c069852

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page