mirror of https://github.com/pulumi/pulumi.git
19 lines
372 B
Go
19 lines
372 B
Go
package main
|
|
|
|
import (
|
|
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/rds"
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
)
|
|
|
|
func main() {
|
|
pulumi.Run(func(ctx *pulumi.Context) error {
|
|
_, err := rds.NewCluster(ctx, "dbCluster", &rds.ClusterArgs{
|
|
MasterPassword: pulumi.ToSecret("foobar").(pulumi.StringOutput),
|
|
})
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
})
|
|
}
|