---
title: Deploy to AWS
url: /docs/iac/get-started/aws/deploy-stack/
---
## Deploy to AWS

Now run `pulumi up` to start deploying your new S3 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:

```
Previewing update (dev):

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

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 S3 bucket, select `yes`. This begins an **update**:

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

     Type                 Name            Status
 +   pulumi:pulumi:Stack  quickstart-dev  created (4s)
 +   └─ aws:s3:Bucket     my-bucket       created (2s)

Outputs:
    bucketName: "my-bucket-58ce361"

Resources:
    + 2 created

Duration: 5s
```

Updates can take some time since they wait for the cloud resources to finish being created. S3 buckets are quick,
however, so the update will finish in just a few seconds.

> **Note:** The extra characters you see tacked onto the bucket name (`-58ce361`) 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/concepts/resources/names/#autonaming).

### Using stack outputs

The bucket ID can be accessed with the `pulumi stack output` command. You can use this to easily list
the contents of your new bucket -- which of course will be empty:

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

<!-- chooser: language -->
<!-- option: typescript -->
```bash
$ aws s3 ls s3://$(pulumi stack output bucketName)

```

<!-- /option -->

<!-- option: python -->
```bash
$ aws s3 ls s3://$(pulumi stack output bucket_name)

```

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

<!-- /option -->

<!-- option: windows -->

<!-- chooser: language -->
<!-- option: typescript -->
```powershell
$ aws s3 ls ("s3://" + (pulumi stack output bucketName))

```

<!-- /option -->

<!-- option: python -->
```powershell
$ aws s3 ls ("s3://" + (pulumi stack output bucket_name))

```

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

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

### View your update on Pulumi Cloud

If you are logged into [Pulumi Cloud](/docs/pulumi-cloud), you'll see "View Live" hyperlinks in the CLI output during your update. These go to [a page](https://app.pulumi.com/signin) with 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, as shown in the Pulumi Service](/images/getting-started/console-update.png)

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

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


