clank-vault/shuttletask/apply.go

25 lines
312 B
Go
Raw Normal View History

2023-04-09 23:24:34 +02:00
package main
import (
"context"
"log"
)
func Apply(ctx context.Context) error {
terraform, err := bootstrap(ctx)
if err != nil {
return err
}
out, err := terraform.WithExec([]string{
"apply", "-auto-approve",
}).
Stdout(ctx)
log.Printf("%s", out)
if err != nil {
return err
}
return nil
}