Skip to content

Support kubernetes backend #1628

Open
Open
@iridian-ks

Description

@iridian-ks

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cdktfcore-parityBetter experience in Terraform Core than CDKTFenhancementNew feature or requestgood first issueGood for newcomershelp wantedCommunity contributions welcome as the core team is unlikely to work on this soonpriority/backlogLow priority (though possibly still important). Unlikely to be worked on within the next 6 months.size/smallestimated < 1 day

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions