sourcegraph/dev/managedservicesplatform/stacks
Robert Lin 27211dea73
feat/msp: update handbook link in alerts dashboard, sort custom alerts first (#63089)
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
2024-06-05 09:09:22 -07:00
..
cloudrun fix/msp: make deadlineSeconds job-level configuration, apply in timeout (#63017) 2024-05-31 21:15:31 +00:00
iam bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
monitoring feat/msp: update handbook link in alerts dashboard, sort custom alerts first (#63089) 2024-06-05 09:09:22 -07:00
project bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
tfcworkspaces bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
README.md
stacks.go sg msp: use env GSM only, fix 'sg msp logs' for jobs (#59346) 2024-01-04 18:07:42 -08:00

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
  )

  // ...
}