---
title: Deploy to Google Cloud
url: /docs/iac/get-started/gcp/deploy-stack/
---


## Deploy to Google Cloud

Now run `pulumi up` to start deploying your new storage bucket:

<!-- chooser: os -->
<!-- option: macos -->

```bash
$ pulumi up
```

<!-- /option -->

<!-- option: windows -->

```powershell
> pulumi up
```

<!-- /option -->
<!-- /chooser -->

This command first shows you a **preview** of the changes that will be made:

```output
Previewing update (dev):

     Type                   Name            Plan
 +   pulumi:pulumi:Stack    quickstart-dev  create
 +   └─ gcp:storage:Bucket  my-bucket       create

Outputs:
    bucketName: [unknown]

Resources:
    + 2 to create

Do you want to perform this update?
> yes
  no
  details
```

No changes have been made yet. You may decline to proceed by selecting `no` or choose `details` to
see more information about the proposed update like your bucket's properties.

### Performing the update

To proceed and deploy your new storage bucket, select `yes`. This begins an **update**:

```output
Do you want to perform this update? yes
Updating (dev):

     Type                   Name            Status
 +   pulumi:pulumi:Stack    quickstart-dev  created (3s)
 +   └─ gcp:storage:Bucket  my-bucket       created (1s)

Outputs:
    bucketName: "gs://my-bucket-daa12be"

Resources:
    + 2 created

Duration: 4s
```

Updates can take some time because they wait for the cloud resources to finish being created. Storage buckets
are quick, however, so this update finishes in a few seconds.

> **Note:** The extra characters you see tacked onto the bucket name (`-daa12be`) are the result of *auto-naming*, a feature that lets you use the same resource names across multiple stacks without naming collisions. You can disable or fine-tune this. To learn how, [read more about auto-naming](/docs/iac/concepts/resources/names/#autonaming).

### Using stack outputs

The bucket name is available as a stack output. To view it:

<!-- chooser: os -->
<!-- option: linux -->

<!-- chooser: language -->
<!-- option: typescript -->
```bash
$ pulumi stack output bucketName

```

<!-- /option -->

<!-- option: python -->
```bash
$ pulumi stack output bucket_name

```

<!-- /option -->

<!-- option: go -->
```bash
$ pulumi stack output bucketName

```

<!-- /option -->

<!-- option: csharp -->
```bash
$ pulumi stack output bucketName

```

<!-- /option -->

<!-- option: java -->
```bash
$ pulumi stack output bucketName

```

<!-- /option -->

<!-- option: yaml -->
```bash
$ pulumi stack output bucketName

```

<!-- /option -->
<!-- /chooser -->

<!-- /option -->

<!-- option: windows -->

<!-- chooser: language -->
<!-- option: typescript -->
```powershell
> pulumi stack output bucketName

```

<!-- /option -->

<!-- option: python -->
```powershell
> pulumi stack output bucket_name

```

<!-- /option -->

<!-- option: go -->
```powershell
> pulumi stack output bucketName

```

<!-- /option -->

<!-- option: csharp -->
```powershell
> pulumi stack output bucketName

```

<!-- /option -->

<!-- option: java -->
```powershell
> pulumi stack output bucketName

```

<!-- /option -->

<!-- option: yaml -->
```powershell
> pulumi stack output bucketName

```

<!-- /option -->
<!-- /chooser -->

<!-- /option -->
<!-- /chooser -->

Running that command prints the name of your bucket.

### View your update on Pulumi Cloud

If you are logged into [Pulumi Cloud](/docs/iac/concepts/pulumi-cloud/), you'll see "View Live" hyperlinks in the CLI output during your update. Each one opens your stack in the [Pulumi Cloud console](https://app.pulumi.com/), which shows detailed information about your stack including resources, configuration, a full history of updates, and more. Navigate to it to review the details of your update:

![A stack update with console output in the Pulumi Cloud console](/images/getting-started/console-update.png)

Now that the storage bucket has been provisioned, you'll update it to host a static website.

---
[← Previous step](/docs/iac/get-started/gcp/create-project/)
[Next: Make an update →](/docs/iac/get-started/gcp/modify-program/)


