mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
Adds GCP Monitoring Alert Policies for Cloud Run Services, Cloud Run Jobs and, if enabled, Cloud Redis |
||
|---|---|---|
| .. | ||
| cloudrun | ||
| iam | ||
| monitoring | ||
| options | ||
| project | ||
| BUILD.bazel | ||
| README.md | ||
| stacks_test.go | ||
| 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
)
// ...
}