hashicorp / terraform-k8s

Terraform Cloud Operator for Kubernetes
https://learn.hashicorp.com/tutorials/terraform/kubernetes-operator?in=terraform/kubernetes
Mozilla Public License 2.0
454 stars 71 forks source link

Support for state management and execution via Terraform OSS #10

Closed aareet closed 2 years ago

aareet commented 4 years ago

Community Note

Description

Syncing Kubernetes workspaces to Terraform Cloud provides a first-class Kubernetes interface for updating infrastructure managed by Terraform Cloud by re-executing updates to infrastructure configuration and Terraform Cloud non-sensitive variables. The functionality depends on Terraform Cloud to ensure consistent approaches to state locking, state storage, and execution.

If you would like to see the functionality of the operator include the execution and state management capabilities of open source Terraform, please document your use case below.

References

Documentation

jrhouston commented 4 years ago

Rancher has a project that does something very similar to this here https://github.com/rancher/terraform-controller

iAnomaly commented 4 years ago

Our governance and security requirements mandate private network access for reaching the resources managed by Terraform. Because Terraform Cloud requires that target resources have Internet accessibility and uses a shared run environment model, in order to adopt the Kubernetes Terraform Operator at our organization we either need (inclusive OR):

  1. The ability to host our own Terraform Cloud runners
  2. Terraform Operator's support for open source (self-hosted) Terraform

Thank you!

andre-taveira commented 4 years ago

Hey everyone,

As a platform engineer I'm looking for a way to give developers freedom to provision infrastructure without needing to contact central teams. That said I'm looking at wide variety of use cases and scenarios from Ops and Dev perspective so its worth to breakdown at least by personas.

Ops team:

DEV teams

Thoughts ? Me and some other folks were willing to start something fresh on this domain since its quite urgent for our day to day work but if we can collaborate over here it would be perfect ! Just need the directions on how to start :)

redeux commented 3 years ago

@iAnomaly once https://github.com/hashicorp/terraform-k8s/pull/82 is released, you'll have the ability to host your own Terraform Cloud Agents (Runners) and leverage them with this Operator.

iAnomaly commented 3 years ago

Thanks @redeux. I was super excited to see this but then read the fine print that Terraform Cloud Agents require Terraform Cloud for Business which has non-transparent pricing.

Would love to either see Cloud Agents supported on lower plans and/or support for Terraform OSS.

Obsecurus commented 2 years ago

Any updates on supporting this in the OSS? Looking into using https://github.com/isaaguilar/terraform-operator and would prefer to take the Hashicorp developed route but not looking for Terraform Cloud Enterprise/Business.

jrhouston commented 2 years ago

We are going to close this issue as we wont add support for Terraform OSS in this project. The scope of this project is to provide a Kubernetes management layer on top of Terraform Cloud. I would recommend contributing to one of the other mentioned open source projects that are trying to implement an operator for Terraform OSS: