mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 20:11:54 +00:00
1. The dashboard link still points to the old `go/msp-ops/...` which no longer work (CORE-105) 2. Alerts defined on top of the MSP defaults are probably of more interest, so let's sort these in front of the others ## Test plan Unit/golden tests |
||
|---|---|---|
| .. | ||
| cloudrun | ||
| iam | ||
| monitoring | ||
| project | ||
| tfcworkspaces | ||
| BUILD.bazel | ||
| README.md | ||
| stacks.go | ||
CDKTF stacks
A stack is a fully composed set of CDKTF resources that maps to a Terraform workspace. A set of stacks composes a CDKTF application.
Each stack package must declare the following interface:
import (
"github.com/sourcegraph/sourcegraph/dev/managedservicesplatform/internal/stack"
"github.com/sourcegraph/sourcegraph/dev/managedservicesplatform/internal/stack/options/googleprovider"
)
// CrossStackOutput allows programatic access to stack outputs across stacks.
// For human reference outputs, use (stack.ExplicitStackOutputs).Add(...)
type CrossStackOutput struct {}
type Variables struct {}
const StackName = "..."
func NewStack(stacks *stack.Set, vars Variables) (*CrossStackOutput, error) {
stack, outputs := stacks.New(StackName,
googleprovider.With(vars.ProjectID),
// ... other stack-wide options
)
// ...
}