Closed ttais2017 closed 8 months ago
Hi @ttais2017 š
Thank you for raising this and thank you for the fixed files. While reading them I noticed that the following dependency seems outdated:
<dependency>
<groupId>com.hashicorp</groupId>
<artifactId>cdktf-provider-aws</artifactId>
<version>6.0.5</version>
</dependency>
which is probably why you had to change the imports in the other files.
The current major version of the pre-built provider for AWS is 19
and there have been changes since 6.0.5
that affected the names of packages and thus imports.
The example you linked uses locally build provider bindings to allow us to run the examples in CI and confirm they work. You can generate the code for them by running cdktf get
.
I just tried this with the latest version of CDKTF and the code compiled successfully.
As this issue might be outdated by now, I'm going to close it. But feel free to create a new one, if you're still running into issues.
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Expected Behavior
The basic project with Java& Maven should compile and be able to be deployed
This is the url of the project https://github.com/hashicorp / terraform-cdk
Actual Behavior
the project does not compile.
Steps to Reproduce
mvn compile
Versions
Terraform v1.5.5 on windows_amd64
cdktf 0.17.3
Providers
No response
Gist
No response
Possible Solutions
here the pom.xml fixed:
Here the java class also fixed:
Workarounds
No response
Anything Else?
No response
References
No response
Help Wanted
Community Note