mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-08 14:33:52 +07:00
23 lines
390 B
Go
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()
|
|
}
|