Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDKTF: Tailscale provider isn't registered #3524

Open
1 task
TreehouseFalcon opened this issue Feb 27, 2024 · 3 comments
Open
1 task

CDKTF: Tailscale provider isn't registered #3524

TreehouseFalcon opened this issue Feb 27, 2024 · 3 comments
Labels
bug Something isn't working needs-priority Issue has not yet been prioritized; this will prompt team review

Comments

@TreehouseFalcon
Copy link

TreehouseFalcon commented Feb 27, 2024

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

  1. Run cdktf providers add tailscale/tailscale successfully
  2. Add a TailscaleProvider block to the entrypoint in your code
  3. Add a TailscaleDeviceKey resource afterwards
  4. 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
@TreehouseFalcon TreehouseFalcon added bug Something isn't working new Un-triaged issue labels Feb 27, 2024
@TreehouseFalcon
Copy link
Author

Updated issue with attempt on 0.20.4.

@DanielMSchmidt
Copy link
Contributor

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?

@ansgarm ansgarm added waiting-on-answer needs-priority Issue has not yet been prioritized; this will prompt team review and removed new Un-triaged issue labels Mar 4, 2024
@TreehouseFalcon
Copy link
Author

TreehouseFalcon commented Mar 4, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-priority Issue has not yet been prioritized; this will prompt team review
Projects
None yet
Development

No branches or pull requests

3 participants