Open
Description
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
Description
The Kubernetes backend in Terraform: https://www.terraform.io/language/settings/backends/kubernetes
Seems to be missing from Terraform CDK: https://www.terraform.io/cdktf/concepts/remote-backends#supported-backends
It looks like CDK is generating a JSON file for backends, which I tried creating manually like so:
remote.tf.json
{
"terraform": {
"backend": {
"kubernetes": {
}
}
}
}
Then in the Pod setting KUBE_IN_CLUSTER_CONFIG
and KUBE_NAMESPACE
env vars and running cdktf deploy
does not initialize the backend and uses local state.