Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for block creation #126

Closed
jpeeg opened this issue Nov 21, 2023 · 9 comments
Closed

Support for block creation #126

jpeeg opened this issue Nov 21, 2023 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@jpeeg
Copy link

jpeeg commented Nov 21, 2023

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!

@iotmani
Copy link

iotmani commented Dec 5, 2023

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.

@taylor-curran
Copy link

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

@youcandanch
Copy link
Contributor

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.

@oieduardorabelo
Copy link

oieduardorabelo commented May 22, 2024

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

@mitchnielsen
Copy link
Contributor

👋🏼 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.

@mitchnielsen
Copy link
Contributor

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

@mitchnielsen mitchnielsen added the enhancement New feature or request label Jun 4, 2024
@mitchnielsen
Copy link
Contributor

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.

@oieduardorabelo
Copy link

oieduardorabelo commented Jun 11, 2024

that's amazing, thanks @mitchnielsen

i'll bring that up to our backlog asap

looking forward to REMOVE code 🚀

@parkedwards
Copy link
Contributor

parkedwards commented Jun 19, 2024

hey everyone - v2.0.0 is now released, which adds Blocks support to the Provider

https://registry.terraform.io/providers/PrefectHQ/prefect/latest/docs/resources/block

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants