From f9abff86470c01322f82f49cc5982ce764698b01 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sat, 4 Sep 2021 13:24:24 +0700 Subject: [PATCH] Remove Terraform CDK No more RKE --- experimental/terraform-cdk/.gitignore | 21 ----------------- experimental/terraform-cdk/README.md | 33 --------------------------- experimental/terraform-cdk/cdktf.json | 14 ------------ experimental/terraform-cdk/go.mod | 7 ------ experimental/terraform-cdk/go.sum | 15 ------------ experimental/terraform-cdk/main.go | 22 ------------------ 6 files changed, 112 deletions(-) delete mode 100644 experimental/terraform-cdk/.gitignore delete mode 100644 experimental/terraform-cdk/README.md delete mode 100644 experimental/terraform-cdk/cdktf.json delete mode 100644 experimental/terraform-cdk/go.mod delete mode 100644 experimental/terraform-cdk/go.sum delete mode 100644 experimental/terraform-cdk/main.go diff --git a/experimental/terraform-cdk/.gitignore b/experimental/terraform-cdk/.gitignore deleted file mode 100644 index 4033944b..00000000 --- a/experimental/terraform-cdk/.gitignore +++ /dev/null @@ -1,21 +0,0 @@ - -# cdktf and terraform ignores -.terraform -cdktf.out -cdktf.log -*terraform.*.tfstate* -generated - -# src https://github.com/github/gitignore/blob/master/Go.gitignore -# Binaries for programs and plugins -*.exe -*.exe~ -*.dll -*.so -*.dylib - -# Test binary, built with `go test -c` -*.test - -# Output of the go coverage tool, specifically when used with LiteIDE -*.out diff --git a/experimental/terraform-cdk/README.md b/experimental/terraform-cdk/README.md deleted file mode 100644 index 01ab29f3..00000000 --- a/experimental/terraform-cdk/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# Terraform CDK - -## Usage - -Compile: - -```sh -go build # Builds your go project -``` - -Synthesize: - -```sh -cdktf synth [stack] # Synthesize Terraform resources to cdktf.out/ -``` - -Diff: - -```sh -cdktf diff [stack] # Perform a diff (terraform plan) for the given stack -``` - -Deploy: - -```sh -cdktf deploy [stack] # Deploy the given stack -``` - -Destroy: - -```sh -cdktf destroy [stack] # Destroy the given stack -``` diff --git a/experimental/terraform-cdk/cdktf.json b/experimental/terraform-cdk/cdktf.json deleted file mode 100644 index 4bd5236c..00000000 --- a/experimental/terraform-cdk/cdktf.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "language": "go", - "app": "go run main.go", - "codeMakerOutput": "generated", - "terraformProviders": [ - "rancher/rke@~> 1.2.0", - "hashicorp/helm@~> 2.2.0" - ], - "terraformModules": [], - "context": { - "excludeStackIdFromLogicalIds": "true", -"allowSepCharsInLogicalIds": "true" - } -} diff --git a/experimental/terraform-cdk/go.mod b/experimental/terraform-cdk/go.mod deleted file mode 100644 index f9d81a65..00000000 --- a/experimental/terraform-cdk/go.mod +++ /dev/null @@ -1,7 +0,0 @@ -module cdk.tf/go/stack - -go 1.16 - -require github.com/aws/constructs-go/constructs/v3 v3.3.75 - -require github.com/hashicorp/terraform-cdk-go/cdktf v0.5.0 diff --git a/experimental/terraform-cdk/go.sum b/experimental/terraform-cdk/go.sum deleted file mode 100644 index 875f1d6b..00000000 --- a/experimental/terraform-cdk/go.sum +++ /dev/null @@ -1,15 +0,0 @@ -github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc= -github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/aws/constructs-go/constructs/v3 v3.3.75 h1:sunQ8/mQwVoV0OdGYmSh/s8Z2XyUXr8hCc/bKzz6SoU= -github.com/aws/constructs-go/constructs/v3 v3.3.75/go.mod h1:gh+X5UyxGPp/fWyp8iVMa75yMDQev4639pQ93HXXMoA= -github.com/aws/jsii-runtime-go v1.28.0/go.mod h1:6tZnlstx8bAB3vnLFF9n8bbkI//LDblAek9zFyMXV3E= -github.com/aws/jsii-runtime-go v1.29.0 h1:JH4GHSauYskfzREWaQMAMTXDRgNR2e5XeLbjD/xf9J0= -github.com/aws/jsii-runtime-go v1.29.0/go.mod h1:6tZnlstx8bAB3vnLFF9n8bbkI//LDblAek9zFyMXV3E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/hashicorp/terraform-cdk-go/cdktf v0.5.0 h1:zTy/YB8Q69QmiTAeVtG79TKKaFyJZF8ez7dvneRQ/LQ= -github.com/hashicorp/terraform-cdk-go/cdktf v0.5.0/go.mod h1:Lzi9rFr53rGiJGwD1OW6VjadHDApWJ94GXfdHDX3Mf4= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/experimental/terraform-cdk/main.go b/experimental/terraform-cdk/main.go deleted file mode 100644 index 573fb8d2..00000000 --- a/experimental/terraform-cdk/main.go +++ /dev/null @@ -1,22 +0,0 @@ -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() -}