PrefectHQ / terraform-provider-prefect

Terraform Provider for Prefect Cloud

Home Page:https://registry.terraform.io/providers/PrefectHQ/prefect/latest/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for block creation

jpeeg opened this issue ยท comments

It would be really great if blocks could be created via Terraform. Currently we have various GCP service accounts we need prefect to use, which means we have to manually generate and download the key for each service account, create a prefect block, and paste the key in. We need to do this for many different service accounts across multiple workspaces.

A smoother alternative would be when we create the GCP service accounts in terraform we can also generate the keys and pass them as an input to e.g. a terraform module which is responsible for creating "GCP Credentials" blocks.

Thank you!

Hey @desertaxle, do you want to take this ticket as per our earlier discussion? Or link it to an existing one if you have one.

I have a plus one from a customer on this request.

Big +1 on this one, especially for credentialing. API seems to support it well, at least looking at the docs here: https://app.prefect.cloud/api/docs?deviceId=ef122781-5a78-432a-bf79-028df0ad6df2#tag/Block-documents/operation/create_block_document_api_accounts__account_id__workspaces__workspace_id__block_documents__post. Been looking for something to cut my teeth on here so I'll try to take a crack at it.

any roadmap to support this feature?

i have a similar user case:

  • multiple tenants in aws require multiple blocks in prefect cloud
  • for each tenant, i create a process + aws credentials block

current solution is calling the prefect cloud rest api post-terraform apply

it works, but ideally, everything should be handled in terraform

๐Ÿ‘‹๐Ÿผ Thanks everyone for reaching out. We're actively discussing this internally and deciding how best to implement it. We should have a more detailed update either this week or next.

We're starting to iterate on blocks support now ๐ŸŽ‰ You can keep an eye on work by searching for "Blocks Support" issues.

Checking in: we've completed all of the issues we created for addressing Block support. We're going to do some more testing and dogfooding of this internally and will follow up when we cut a public release.

that's amazing, thanks @mitchnielsen

i'll bring that up to our backlog asap

looking forward to REMOVE code ๐Ÿš€