1. Packages
  2. AWS
  3. How-to Guides
  4. AWS Resources (in Go)
AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi

AWS Resources (in Go)

AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi

View Code Deploy this example with Pulumi

A Pulumi program that demonstrates creating various AWS resources in Golang

Deploying the App

To deploy your infrastructure, follow the below steps.

Prerequisites

  1. Install Go
  2. Install Pulumi
  3. Configure AWS Credentials

Steps

After cloning this repo, from this working directory, run these commands:

  1. Next, create a new Pulumi stack, which is an isolated deployment target for this example:

    $ pulumi stack init
    
    Copy
  2. Set the required configuration variables for this program:

    $ pulumi config set aws:region us-west-2
    
    Copy
  3. Run pulumi up to preview and deploy changes:

    $ pulumi up
    Previewing update (dev):
    ...
    
    Updating (dev):
    ...
    Resources:
        + 28 created
    Duration: 44s
    
    Copy

Clean up

  1. Run pulumi destroy to tear down all resources.

  2. To delete the stack itself, run pulumi stack rm. Note that this command deletes all deployment history from the Pulumi console.

AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi