khuedoan-homelab/infra/cdk/main.go
2021-08-03 17:14:13 +00:00

23 lines
390 B
Go

package main
import (
"github.com/aws/constructs-go/constructs/v3"
"github.com/hashicorp/terraform-cdk-go/cdktf"
)
func NewMyStack(scope constructs.Construct, id string) cdktf.TerraformStack {
stack := cdktf.NewTerraformStack(scope, &id)
// The code that defines your stack goes here
return stack
}
func main() {
app := cdktf.NewApp(nil)
NewMyStack(app, "cdk")
app.Synth()
}