Skip to content

testing the terraform version 0.12 on the cdktf-cli deploy command. The version 0.12 works fine with the provider that is not imported in the main.ts.

Notifications You must be signed in to change notification settings

lVlario0O0o/typescript-example-from-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-example-from-web

This repo is a copy of the tutorial found here

Use terraform version 0.12, since with terraform version 0.13 and Up we need to import the docker provider in the main.ts file. We may find this version here.

use cdktf latest version.

$ cdktf get
$ cdktf deploy

It just works fine with the version 0.12.

Now we may use the terraform version 0.14 and repeat the steps of deploying.

We got an error like the following.

Then we may

  • comment the line 3
  • uncomment the line 4 and 10

to include the required provider in the cdktf.out/cdk.tf.json file generated by the cdktf-cli.

Remove the terraform.tfstate file and retry with the $ cdktf deploy command to make it work with the version 0.14.

For more information relate to this section of the terraform upgrade guide to version 0.13

About

testing the terraform version 0.12 on the cdktf-cli deploy command. The version 0.12 works fine with the provider that is not imported in the main.ts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published