mirror of https://github.com/pulumi/pulumi.git
19 lines
352 B
Go
19 lines
352 B
Go
package main
|
|
|
|
import (
|
|
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
)
|
|
|
|
func main() {
|
|
pulumi.Run(func(ctx *pulumi.Context) error {
|
|
_, err := random.NewRandomPet(ctx, "random-pet", &random.RandomPetArgs{
|
|
Prefix: pulumi.String("doggo"),
|
|
})
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
})
|
|
}
|