feat: add vault terraform user

This commit is contained in:
2023-04-09 23:24:34 +02:00
commit f48efb5ebd
9 changed files with 296 additions and 0 deletions

24
shuttletask/apply.go Normal file
View 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
}