Skip to main content
Welcome to the Pulumi AWS demo guide. This documentation provides step-by-step instructions on installing Pulumi, configuring AWS credentials, initializing a new Pulumi project using YAML, and deploying a simple HTML page via an S3 bucket. If you have any questions regarding various configurations, please note that reply lengths might be limited.

Install Pulumi

To install Pulumi on your system, open your terminal and run the following command:
Below is an example of the installation output you may see:

Configure AWS Credentials

Set your AWS credentials by exporting your AWS access key and secret key in your terminal:
Below is another complete sample session illustrating the Pulumi installation along with AWS credential export:

Initialize a New Pulumi Project

To begin your Pulumi project, create a new directory and initialize your project using the AWS YAML template:
The session below demonstrates environment variable exports and project initialization:

Pulumi YAML Configuration

Below is the Pulumi YAML configuration for the minimal AWS project. This configuration creates an S3 bucket and exports its name.
When running pulumi up, you will see a preview similar to the following:

Detailed Deployment Log

Below is an extended log from an update operation:
And here is the final output once the update is complete:
After deployment, you might see a summary similar to:

Deploy a Simple HTML Page to S3

To serve a simple HTML page from S3, first create an HTML file:
Next, update your Pulumi YAML configuration to include an S3 BucketObject for the HTML file. Here is the updated configuration:
You can verify the bucket deployment and the HTML file with the following commands:
To create or inspect your index.html, use these commands:
If you need to modify the configuration, your Pulumi.yaml might look like one of the following: Without the HTML object:
Or, with the HTML bucket object:

Redeploy the Updated Project

After updating your configuration and HTML file, redeploy your project with the following commands:
Once the deployment is complete, verify the contents of the S3 bucket by running:
A potential output might be:
Finally, list all S3 buckets to confirm the deployment:

For more details on Pulumi and AWS integration, visit the Pulumi Documentation.

Watch Video