AWS resources (in Go)
A Pulumi program that demonstrates creating various AWS resources in Golang
This example lives in the pulumi/examples repository. Check out just this directory to use it:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set aws-go-resourcescd pulumi-examples/aws-go-resourcesA Pulumi program that demonstrates creating various AWS resources in Go.
Prerequisites#
Deploying the example#
-
Create a new stack, which is an isolated deployment target for this example:
Terminal window pulumi stack init dev -
Set the AWS region to deploy into:
Terminal window pulumi config set aws:region us-west-2 -
Install dependencies:
Terminal window go mod download -
Deploy the stack:
Terminal window pulumi upUpdating (dev):...Resources:+ 28 createdDuration: 44s
Cleaning up#
Once you’re finished experimenting, you can destroy your stack and remove it to avoid incurring any additional cost:
pulumi destroypulumi stack rm