Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@pulumi/gcp
Advanced tools
A Pulumi package for creating and managing Google Cloud Platform resources.
@pulumi/gcp is a Pulumi package that allows developers to create, deploy, and manage Google Cloud Platform (GCP) resources using Pulumi's infrastructure as code approach. It provides a wide range of functionalities to manage various GCP services such as Compute Engine, Cloud Storage, BigQuery, and more.
Compute Engine
This feature allows you to create and manage Google Compute Engine instances. The code sample demonstrates how to create a new Compute Engine instance with specific configurations.
const gcp = require('@pulumi/gcp');
const compute = new gcp.compute.Instance('my-instance', {
machineType: 'f1-micro',
zone: 'us-central1-a',
bootDisk: {
initializeParams: {
image: 'debian-cloud/debian-9'
}
},
networkInterfaces: [{
network: 'default',
accessConfigs: [{}]
}]
});
Cloud Storage
This feature allows you to create and manage Google Cloud Storage buckets. The code sample demonstrates how to create a new Cloud Storage bucket with specific configurations.
const gcp = require('@pulumi/gcp');
const bucket = new gcp.storage.Bucket('my-bucket', {
location: 'US',
forceDestroy: true
});
BigQuery
This feature allows you to create and manage Google BigQuery datasets. The code sample demonstrates how to create a new BigQuery dataset with specific configurations.
const gcp = require('@pulumi/gcp');
const dataset = new gcp.bigquery.Dataset('my-dataset', {
datasetId: 'my_dataset',
friendlyName: 'My Dataset',
description: 'A sample dataset'
});
Cloud Functions
This feature allows you to create and manage Google Cloud Functions. The code sample demonstrates how to create a new Cloud Function with specific configurations.
const gcp = require('@pulumi/gcp');
const function = new gcp.cloudfunctions.Function('my-function', {
runtime: 'nodejs10',
entryPoint: 'helloWorld',
sourceArchiveBucket: bucket.name,
sourceArchiveObject: bucketObject.name,
triggerHttp: true
});
@pulumi/aws is a Pulumi package that allows developers to create, deploy, and manage Amazon Web Services (AWS) resources using Pulumi's infrastructure as code approach. It provides similar functionalities to @pulumi/gcp but for AWS services.
@pulumi/azure is a Pulumi package that allows developers to create, deploy, and manage Microsoft Azure resources using Pulumi's infrastructure as code approach. It provides similar functionalities to @pulumi/gcp but for Azure services.
Terraform is an open-source infrastructure as code software tool created by HashiCorp. It allows users to define and provision data center infrastructure using a high-level configuration language. Terraform supports multiple cloud providers, including GCP, AWS, and Azure, making it a versatile alternative to @pulumi/gcp.
The Google Cloud Platform (GCP) resource provider for Pulumi lets you use GCP resources in your cloud programs. To use this package, install the Pulumi CLI. For a streamlined Pulumi walkthrough, including language runtime installation and GCP configuration, select "Get Started" below.
This package is available in many languages in the standard packaging formats.
To use from JavaScript or TypeScript in Node.js, install using either npm
:
$ npm install @pulumi/gcp
or yarn
:
$ yarn add @pulumi/gcp
To use from Python, install using pip
:
$ pip install pulumi_gcp
To use from Go, use go get
to grab the latest version of the library
$ go get github.com/pulumi/pulumi-gcp/sdk/v6
To use from .NET, install using dotnet add package
:
$ dotnet add package Pulumi.Gcp
For further information, visit GCP in the Pulumi Registry or for detailed API reference documentation, visit GCP API Docs in the Pulumi Registry.
FAQs
A Pulumi package for creating and managing Google Cloud Platform resources.
We found that @pulumi/gcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.