terraform-cdk
terraform-cdk copied to clipboard
CDKTF: Tailscale provider isn't registered
Expected Behavior
The Tailscale Terraform provider should allow me to manage my Tailscale resources from Terraform CDK.
Actual Behavior
The resources and provider for Tailscale I have defined in my infrastructure code are completely ignored. AWS works just fine.
Steps to Reproduce
- Run
cdktf providers add tailscale/tailscale
successfully - Add a TailscaleProvider block to the entrypoint in your code
- Add a TailscaleDeviceKey resource afterwards
-
cdktf plan
completely ignores installing the provider, doesn't recognize any of the Tailscale resources/provider, completely ignores changes to AWS resources changed at the same time?
Versions
cdktf 0.20.4 tailscale/tailscale 0.14
Providers
┌─────────────────────┬──────────────────┬─────────┬────────────┬─────────────────────┬─────────────────┐ │ Provider Name │ Provider Version │ CDKTF │ Constraint │ Package Name │ Package Version │ ├─────────────────────┼──────────────────┼─────────┼────────────┼─────────────────────┼─────────────────┤ │ tailscale/tailscale │ 0.14.0 │ │ ~> 0.14 │ │ │ ├─────────────────────┼──────────────────┼─────────┼────────────┼─────────────────────┼─────────────────┤ │ aws │ 5.25.0 │ ^0.19.0 │ │ @cdktf/provider-aws │ 18.0.5 │ └─────────────────────┴──────────────────┴─────────┴────────────┴─────────────────────┴─────────────────┘
Node.js v18.16.0
Gist
Output of cdktf debug --experimental-provider-schema-cache-path
https://gist.github.com/TreehouseFalcon/7bbc591f38ec86b8893580533329699f
Possible Solutions
No response
Workarounds
None
Anything Else?
No response
References
No response
Help Wanted
- [ ] I'm interested in contributing a fix myself
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Updated issue with attempt on 0.20.4.
The debug output indicates that the provider has been added to your cdktf.json
and I would assume you have the bindings if you were able to add the provider and a resource to your config. Could you share the relevant parts of your code?
@DanielMSchmidt Here is a gist showing the file setting up the AWS and Tailscale providers. The TailscaleDeviceKey resource never gets noticed by Terraform and until I delete tailscale from the .gen and purge the dist folder, no other resource changes are noticed as well. It's very odd behavior and only happens with the autogenerated Tailscale provider present. This file is part of a much larger infrastructure configuration and I won't be able to send all of the source code.
https://gist.github.com/TreehouseFalcon/ba7362a125dbb3a24ded44f57b6e314f