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 Golang
Deploying the App#
To deploy your infrastructure, follow the below steps.
Prerequisites#
Steps#
After cloning this repo, from this working directory, run these commands:
-
Next, create a new Pulumi stack, which is an isolated deployment target for this example:
Terminal window pulumi stack init -
Set the required configuration variables for this program:
Terminal window pulumi config set aws:region us-west-2 -
Run
pulumi upto preview and deploy changes:Terminal window pulumi upPreviewing update (dev):...Updating (dev):...Resources:+ 28 createdDuration: 44s
Clean up#
-
Run
pulumi destroyto tear down all resources. -
To delete the stack itself, run
pulumi stack rm. Note that this command deletes all deployment history from the Pulumi console.