Skip to content

Commit

Permalink
Merge branch 'main' into upgrade-yargs
Browse files Browse the repository at this point in the history
  • Loading branch information
skorfmann committed Aug 26, 2021
2 parents 9cd209d + f0ffd60 commit 0482857
Show file tree
Hide file tree
Showing 122 changed files with 1,354 additions and 454 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -33,5 +33,4 @@ tsconfig.json
bootstrap.json
terraform-cdk.github-issues
.idea
.husky
tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
18 changes: 18 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,21 @@
## Unreleased Changes

**Breaking Changes**

### Constructs upgrade (`v3` to `v10`)

The `constructs` package serves as the base for all building blocks of the CDKs (e.g. CDK for Terraform, AWS CDK and cdk8s). Recently the `constructs` package was lifted to v10 with a few but major changes. The reason behind those was to make it future proof and stable across different CDKs. In this process the API surface area of the `constructs` base package was reduced and some functionality has been moved directly to the AWS CDK instead. For more information and the underlying motivation for the changes to the `constructs` library refer to the [Removal of Construct Compatibility Layer RFC](https://github.com/aws/aws-cdk-rfcs/blob/master/text/0192-remove-constructs-compat.md).

#### Moved functionality

- `Aspects` are now part of `cdktf` as they've been removed from `constructs`. If you use them, you need to change your import statement to import them from the `cdktf` package. The api also has changed a bit. The new way to register `Aspects` is `Aspects.of(construct).add(aspect)` instead of `construct.node.applyAspect(aspect)`.
- The `construct.node.addInfo()`, `construct.node.addWarning()` and `construct.node.Error()` methods are now available under the `Annotations.of(construct)` API: e.g. `Annotations.of(construct).addWarning('my warning')`. `Annotations` are a part of the `cdktf` base library.

#### Removed functionality

- `construct.onPrepare` / `construct.prepare()` has been removed. Instead you can use `Aspects`: `Aspects.of(this).add({ visit: () => this.prepare() });`.
- `onSynthesize` has been removed. If you find yourself needing support for it, please file a new issue on this repo and describe your use-case.

## 0.5.0 (July 29, 2021)

**New Features**
Expand Down
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -97,6 +97,12 @@ Choose a language:
- [google cloud kubernetes engine + kubernetes](./examples/go/google)
- [ucloud](./examples/go/ucloud)

## Community Templates (for `cdktf init`)

> The following [remote templates](./docs/working-with-cdk-for-terraform/remote-templates.md) are maintained by the community and can be used to setup a CDK for Terraform project instead of the built-in ones.
- [python-poetry](https://github.com/johnfraney/cdktf-remote-template-python-poetry) (by [@johnfraney](https://github.com/johnfraney))

## Documentation

- Install and run a quick start tutorial at [HashiCorp Learn](https://learn.hashicorp.com/terraform/cdktf/cdktf-install)
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started/go.md
Expand Up @@ -64,7 +64,7 @@ vim main.go
package main

import (
"github.com/aws/constructs-go/constructs/v3"
"github.com/aws/constructs-go/constructs/v10"
"github.com/hashicorp/terraform-cdk-go/cdktf"
)

Expand Down Expand Up @@ -95,7 +95,7 @@ package main
import (
"cdk.tf/go/stack/generated/kreuzwerker/docker"

"github.com/aws/constructs-go/constructs/v3"
"github.com/aws/constructs-go/constructs/v10"
"github.com/aws/jsii-runtime-go"
"github.com/hashicorp/terraform-cdk-go/cdktf"
)
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/python.md
Expand Up @@ -31,7 +31,7 @@ mkdir hello-terraform
cd hello-terraform
```

There are two Python templates available that you can choose from.
There are two built-in Python templates available that you can choose from.
The `python` template uses `Pipenv` for package management wheras the
`python-pip` template just uses `pip` with a simple `requirements.txt` file.

Expand Down
2 changes: 1 addition & 1 deletion examples/go/aws/go.mod
Expand Up @@ -3,7 +3,7 @@ module github.com/hashicorp/terraform-cdk/examples/go/aws
go 1.16

require (
github.com/aws/constructs-go/constructs/v3 v3.3.75
github.com/aws/constructs-go/constructs/v10 v10.0.5
github.com/aws/jsii-runtime-go v1.29.0
github.com/hashicorp/terraform-cdk-go/cdktf v0.0.0
)
Expand Down
6 changes: 4 additions & 2 deletions examples/go/aws/go.sum
@@ -1,17 +1,19 @@
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/constructs-go/constructs/v10 v10.0.5 h1:oZMlODZsCKlkBZs4KA8O210MqK2XdrakhGpmBfZKzbE=
github.com/aws/constructs-go/constructs/v10 v10.0.5/go.mod h1:l9g2pvi6/NDTGfjih3Zocwk3K4ASge77Pf5KZ2j2484=
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 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion examples/go/aws/main.go
Expand Up @@ -4,7 +4,7 @@ import (
eks "github.com/hashicorp/terraform-cdk/examples/go/aws/generated/aws_eks_module"
"github.com/hashicorp/terraform-cdk/examples/go/aws/generated/hashicorp/aws"

"github.com/aws/constructs-go/constructs/v3"
"github.com/aws/constructs-go/constructs/v10"
"github.com/aws/jsii-runtime-go"
"github.com/hashicorp/terraform-cdk-go/cdktf"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/go/docker/go.mod
Expand Up @@ -3,7 +3,7 @@ module github.com/hashicorp/terraform-cdk/examples/go/docker
go 1.16

require (
github.com/aws/constructs-go/constructs/v3 v3.3.75
github.com/aws/constructs-go/constructs/v10 v10.0.5
github.com/aws/jsii-runtime-go v1.29.0
github.com/hashicorp/terraform-cdk-go/cdktf v0.0.0
)
Expand Down
6 changes: 4 additions & 2 deletions examples/go/docker/go.sum
@@ -1,17 +1,19 @@
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/constructs-go/constructs/v10 v10.0.5 h1:oZMlODZsCKlkBZs4KA8O210MqK2XdrakhGpmBfZKzbE=
github.com/aws/constructs-go/constructs/v10 v10.0.5/go.mod h1:l9g2pvi6/NDTGfjih3Zocwk3K4ASge77Pf5KZ2j2484=
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 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion examples/go/docker/main.go
Expand Up @@ -19,7 +19,7 @@ package main
import (
"github.com/hashicorp/terraform-cdk/examples/go/docker/generated/kreuzwerker/docker"

"github.com/aws/constructs-go/constructs/v3"
"github.com/aws/constructs-go/constructs/v10"
"github.com/aws/jsii-runtime-go"
"github.com/hashicorp/terraform-cdk-go/cdktf"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/go/google/go.mod
Expand Up @@ -2,7 +2,7 @@ module github.com/hashicorp/terraform-cdk/examples/go/google

go 1.16

require github.com/aws/constructs-go/constructs/v3 v3.3.75
require github.com/aws/constructs-go/constructs/v10 v10.0.5

require (
github.com/aws/jsii-runtime-go v1.29.0
Expand Down
6 changes: 4 additions & 2 deletions examples/go/google/go.sum
@@ -1,17 +1,19 @@
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/constructs-go/constructs/v10 v10.0.5 h1:oZMlODZsCKlkBZs4KA8O210MqK2XdrakhGpmBfZKzbE=
github.com/aws/constructs-go/constructs/v10 v10.0.5/go.mod h1:l9g2pvi6/NDTGfjih3Zocwk3K4ASge77Pf5KZ2j2484=
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 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
3 changes: 2 additions & 1 deletion examples/go/google/main.go
@@ -1,7 +1,7 @@
package main

import (
constructs "github.com/aws/constructs-go/constructs/v3"
constructs "github.com/aws/constructs-go/constructs/v10"
"github.com/hashicorp/terraform-cdk-go/cdktf"

jsii "github.com/aws/jsii-runtime-go"
Expand All @@ -18,6 +18,7 @@ func NewMyStack(scope constructs.Construct, id string) cdktf.TerraformStack {
Zone: jsii.String("us-west1"),
Project: jsii.String("dschmidt-cdk-test"),
})
local.NewLocalProvider(stack, jsii.String("local"), &local.LocalProviderConfig{})

sa := google.NewServiceAccount(stack, jsii.String("sa"), &google.ServiceAccountConfig{
AccountId: jsii.String("cluster-admin"),
Expand Down
2 changes: 1 addition & 1 deletion examples/go/ucloud/go.mod
Expand Up @@ -3,7 +3,7 @@ module github.com/hashicorp/terraform-cdk/examples/go/ucloud
go 1.16

require (
github.com/aws/constructs-go/constructs/v3 v3.3.75
github.com/aws/constructs-go/constructs/v10 v10.0.5
github.com/aws/jsii-runtime-go v1.30.0
github.com/hashicorp/terraform-cdk-go/cdktf v0.0.0
)
Expand Down
6 changes: 4 additions & 2 deletions examples/go/ucloud/go.sum
@@ -1,7 +1,7 @@
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/constructs-go/constructs/v10 v10.0.5 h1:oZMlODZsCKlkBZs4KA8O210MqK2XdrakhGpmBfZKzbE=
github.com/aws/constructs-go/constructs/v10 v10.0.5/go.mod h1:l9g2pvi6/NDTGfjih3Zocwk3K4ASge77Pf5KZ2j2484=
github.com/aws/jsii-runtime-go v1.28.0/go.mod h1:6tZnlstx8bAB3vnLFF9n8bbkI//LDblAek9zFyMXV3E=
github.com/aws/jsii-runtime-go v1.29.0/go.mod h1:6tZnlstx8bAB3vnLFF9n8bbkI//LDblAek9zFyMXV3E=
github.com/aws/jsii-runtime-go v1.30.0 h1:KEQ0G78/VVmgRyXKwKdRTbJF2O9VVG39Hv1Y/iROGbo=
Expand All @@ -10,9 +10,11 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion examples/go/ucloud/main.go
Expand Up @@ -3,7 +3,7 @@ package main
import (
"os"

"github.com/aws/constructs-go/constructs/v3"
"github.com/aws/constructs-go/constructs/v10"
"github.com/aws/jsii-runtime-go"
"github.com/hashicorp/terraform-cdk-go/cdktf"
"github.com/hashicorp/terraform-cdk/examples/go/ucloud/generated/ucloud/ucloud"
Expand Down
2 changes: 1 addition & 1 deletion examples/java/aws/pom.xml
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>software.constructs</groupId>
<artifactId>constructs</artifactId>
<version>3.0.0</version>
<version>10.0.5</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion examples/java/azure/pom.xml
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>software.constructs</groupId>
<artifactId>constructs</artifactId>
<version>3.0.0</version>
<version>10.0.5</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion examples/java/google/pom.xml
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>software.constructs</groupId>
<artifactId>constructs</artifactId>
<version>3.0.0</version>
<version>10.0.5</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion examples/java/gradle-shared-module/common/build.gradle
Expand Up @@ -7,5 +7,5 @@ application {

dependencies {
api 'com.hashicorp:cdktf:0.1.0'
api 'software.constructs:constructs:3.0.0'
api 'software.constructs:constructs:10.0.5'
}
2 changes: 1 addition & 1 deletion examples/java/kubernetes/pom.xml
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>software.constructs</groupId>
<artifactId>constructs</artifactId>
<version>3.0.0</version>
<version>10.0.5</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion examples/java/ucloud/pom.xml
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>software.constructs</groupId>
<artifactId>constructs</artifactId>
<version>3.0.0</version>
<version>10.0.5</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/aws-cloudfront-proxy/package.json
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^3.0.0"
"constructs": "^10.0.5"
},
"devDependencies": {
"@types/node": "^14.0.26",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/aws-multiple-stacks/package.json
Expand Up @@ -17,7 +17,7 @@
"cdktf-cli": "0.0.0"
},
"dependencies": {
"constructs": "^3.0.0",
"constructs": "^10.0.5",
"cdktf": "0.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/typescript/aws-prebuilt/package.json
Expand Up @@ -16,6 +16,6 @@
"dependencies": {
"@cdktf/provider-aws": "^0.0.19",
"cdktf": "0.0.0",
"constructs": "^3.0.0"
"constructs": "^10.0.5"
}
}
2 changes: 1 addition & 1 deletion examples/typescript/azure-app-service/package.json
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^3.0.0"
"constructs": "^10.0.5"
},
"devDependencies": {
"@types/node": "^14.0.27",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/azure/package.json
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^3.0.0"
"constructs": "^10.0.5"
},
"devDependencies": {
"@types/node": "^14.0.26",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/backends/azurerm/package.json
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^3.0.0"
"constructs": "^10.0.5"
},
"devDependencies": {
"@types/node": "^14.0.26",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/backends/gcs/package.json
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^3.0.0"
"constructs": "^10.0.5"
},
"devDependencies": {
"@types/node": "^14.0.26",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/backends/remote/package.json
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^3.0.0"
"constructs": "^10.0.5"
},
"devDependencies": {
"@types/node": "^14.0.26",
Expand Down
6 changes: 5 additions & 1 deletion examples/typescript/backends/s3/main.ts
Expand Up @@ -5,12 +5,16 @@ import {
S3Backend,
DataTerraformRemoteStateS3,
} from "cdktf";
import { DataAwsS3BucketObject } from "./.gen/providers/aws";
import { AwsProvider, DataAwsS3BucketObject } from "./.gen/providers/aws";

class MyStack extends TerraformStack {
constructor(scope: Construct, name: string) {
super(scope, name);

new AwsProvider(this, "aws", {
region: "eu-central-1",
});

// Only one backend is supported by Terraform

// S3 Backend - https://www.terraform.io/docs/backends/types/s3.html
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/backends/s3/package.json
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^3.0.0"
"constructs": "^10.0.5"
},
"devDependencies": {
"@types/node": "^14.0.26",
Expand Down

0 comments on commit 0482857

Please sign in to comment.