https://lakefs.io/ logo
Title
q

Quentin Nambot

12/29/2022, 10:32 AM
Hi everyone, I was wondering if a terraform provider is planned? It could be really nice to create repositories, branches, users, protection rules, etc. using terraform! (like github provider)
a

Adi Polak

12/29/2022, 10:39 AM
heya Quentin! Brian Olson created this terraform repo, any idea how to upload it to integrations? also, is that what you were looking for?
a

Ariel Shaqed (Scolnicov)

12/29/2022, 10:45 AM
Hi @Quentin Nambot, I am not aware of any such in-house development -- we generally go more in the direction of Helm on K8s for our deployment. This previous conversation probably contains the best guidance that I have today, sorry. I think it does offer some useful directions. If your use-case cannot be handled on top of Kubernetes, could you open a bug detailing it please?
a

Adi Polak

12/29/2022, 10:50 AM
q

Quentin Nambot

12/29/2022, 10:57 AM
Thanks @Adi Polak and @Ariel Shaqed (Scolnicov) But I am looking for a terraform provider to create LakeFS resources (not for LakeFS deployment) Currently the only ways (that i know) to create a repo are through the Web UI,
lakectl
command or lakefs clients In my company we need to deploy our infrastructure for several customers and we use many AWS accounts in various regions. So creating repositories, branch protection rules or garbage collection policies through the WebUI would require repeating the same actions a lot of time, and is very complicated to evolve So we use IaC with terraform to setup all our infra. Since there is no terraform provider currently, I will write python script to setup infra but with terraform it could be way more simple, like
resource "lakefs_repository" {
    name = "my-repo"
}

resource "lakefs_repository_garbage_policy" {
    repository = lakefs_repository.id
    policy = { ... }
}
...
And to create users, with secret keys, link them to group, etc. it could be useful too! 😉 But thanks for the answers, since it is not in the roadmap, I will do what I need using python scripts 👌
a

Ariel Shaqed (Scolnicov)

12/29/2022, 11:05 AM
Thanks, now I understand! I assumed when I should have asked. Sorry we don't have this available. I'll ask around on Sunday and see if we have some more effective ways available to do this.
q

Quentin Nambot

12/29/2022, 2:14 PM
Ok thanks! Maybe that if I have some time soon I'll try to begin a provider! 😉
🙌 1
:lakefs: 1
💻 1
t

Tal Sofer

12/29/2022, 3:02 PM
@Quentin Nambot that would be great!! In the meantime, do you mind opening a github issue with your feature request?
👍 1
q

Quentin Nambot

12/29/2022, 3:23 PM