Deploy the Stack
Let’s go ahead and deploy the stack:
Because Go is a compiled language, you first need to compile it:
$ go build $(basename $(pwd))
This instructs Go to create a binary whose name is the same as your directory. It needs to match your project name.
Next, we will ask Pulumi to run it and deploy the stack:
$ pulumi up
This command instructs Pulumi to determine the resources needed to create the stack. First, a preview is shown 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
yes will create resources in AWS.
Do you want to perform this update? yes Updating (dev): Type Name Status + pulumi:pulumi:Stack quickstart-dev created + └─ aws:s3:Bucket my-bucket created Outputs: bucketName: "my-bucket-68e33ec" Resources: + 2 created Duration: 14s
The name of the bucket that we exported is shown as a stack output.
Next, we’ll make some modifications to the program.