incalculable-angle-91273
01/16/2019, 12:37 AMpackage main
import (
"<http://github.com/pulumi/pulumi/sdk/go/pulumi|github.com/pulumi/pulumi/sdk/go/pulumi>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ctx.Export("x", "hello")
return nil
})
}
big-piano-35669
$ pulumi up
Previewing update (go-hw-dev):
Type Name Plan
+ pulumi:pulumi:Stack go-hw-go-hw-dev create
Resources:
+ 1 to create
Do you want to perform this update? yes
Updating (go-hw-dev):
Type Name Status
+ pulumi:pulumi:Stack go-hw-go-hw-dev created
Outputs:
x: "hello"
Resources:
+ 1 created
Duration: 1s
Permalink: <https://app.pulumi.com/joeduffy/go-hw-dev/updates/1>
$ pulumi stack output
Current stack outputs (1):
OUTPUT VALUE
x hello
pulumi version
)incalculable-angle-91273
01/16/2019, 7:04 PM