Skip to content

Commit

Permalink
refactor: move provisioner binaries directly under cmd + add script s…
Browse files Browse the repository at this point in the history
…ymlinks (#2718)

…This allows us to build+run just by running
`ftl-provisioner-cloudformation`.
  • Loading branch information
alecthomas authored Sep 18, 2024
1 parent bfc85f3 commit a8bb1c1
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 1 deletion.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ package main

import (
"context"
"os"
"time"

"connectrpc.com/connect"
"github.com/alecthomas/kong"
"github.com/jpillora/backoff"

"github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1beta1/provisioner"
Expand All @@ -13,10 +15,15 @@ import (
"github.com/TBD54566975/ftl/internal/log"
)

var cli struct {
log.Config `prefix:"log-"`
}

// For locally testing the provisioners.
// You should add the provisioner being tested to your PATH before running this
func main() {
ctx := log.ContextWithNewDefaultLogger(context.Background())
kong.Parse(&cli)
ctx := log.ContextWithLogger(context.Background(), log.Configure(os.Stderr, cli.Config))

client, ctx, err := plugin.Spawn(
ctx,
Expand Down
3 changes: 3 additions & 0 deletions cmd/ftl-provisioner-cloudformation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# FTL infrastructure provisioners

This is still experimental code under heavy development, and should not be used yet! Assume all APIs here will change very frequently
1 change: 1 addition & 0 deletions scripts/devel-provisioner
1 change: 1 addition & 0 deletions scripts/ftl-provisioner-cloudformation

0 comments on commit a8bb1c1

Please sign in to comment.