feat: add vault terraform user
This commit is contained in:
24
shuttletask/apply.go
Normal file
24
shuttletask/apply.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user