Initial commit
This commit is contained in:
commit
8503b9794b
10 changed files with 921 additions and 0 deletions
35
main.go
Normal file
35
main.go
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
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 {
|
||||
cfg := config.New(ctx, "")
|
||||
//ocicfg := config.New(ctx, "oci")
|
||||
|
||||
// My Compartment
|
||||
compartment, err := identity.NewCompartment(ctx, "compartment", &identity.CompartmentArgs{
|
||||
Name: pulumi.Sprintf("%s-heyform-compartment", ctx.Stack()),
|
||||
Description: pulumi.String("Compartment for HeyForm"),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
subnet, err := setupNetwork(ctx, compartment)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = setupHeyform(ctx, cfg, compartment, subnet)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue