30 lines
671 B
Go
30 lines
671 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/pulumi/pulumi-oci/sdk/go/oci/identity"
|
||
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
pulumi.Run(func(ctx *pulumi.Context) error {
|
||
|
ocicfg := config.New(ctx, "oci")
|
||
|
|
||
|
// My Compartment
|
||
|
compartment, err := identity.NewCompartment(ctx, "compartment", &identity.CompartmentArgs{
|
||
|
Name: pulumi.Sprintf("%s-happydomain-compartment", ctx.Stack()),
|
||
|
Description: pulumi.String("Compartment for happyDomain"),
|
||
|
})
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
_, _, err = setupEmails(ctx, ocicfg, compartment)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
})
|
||
|
}
|