khuedoan-homelab/experimental/terraform-cdk/main.go

23 lines
390 B
Go
Raw Normal View History

2021-08-04 00:14:13 +07:00
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()
}