Skip to content

Hands-on Infrastructure-as-Code with Pulumi to create stack resources on GCP

Notifications You must be signed in to change notification settings

NDViet/test-pulumi-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To create a Pulumi project for provisioning a virtual machine in Google Cloud, follow these steps:

Install Pulumi CLI: If you haven't already, install the Pulumi CLI.

curl -fsSL https://get.pulumi.com | sh

Install Google Cloud SDK

curl https://sdk.cloud.google.com | bash
exec -l $SHELL

Authenticate and configure the Google Cloud SDK

gcloud init

Create a new Pulumi project:

pulumi new gcp-python --force --name gcp-vm --description "Create a virtual machine in Google Cloud" --stack gcp --yes

Install required Python packages:

pip install pulumi pulumi-gcp

Create resources on target cloud provider:

pulumi up

Once the resources are created, you can check the status of the resources using the following command:

pulumi stack output

To destroy the resources created, use the following command:

pulumi destroy

About

Hands-on Infrastructure-as-Code with Pulumi to create stack resources on GCP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages