PrefectHQ / terraform-provider-prefect

Terraform Provider for Prefect Cloud
https://registry.terraform.io/providers/PrefectHQ/prefect/latest/docs
Apache License 2.0
33 stars 17 forks source link

prefect block types inspect not working #239

Closed patonavarro closed 3 months ago

patonavarro commented 3 months ago

Community Note

Terraform Version

1.9.3

Affected Resource(s)

Terraform Configuration Files

command: prefect block types inspect

Expected Behavior

Use prefect block types ls to view all available Block type slugs, which is used in the type_slug attribute. Use prefect block types inspect to view the data schema for a given Block type. Use this to construct the data attribute value (as JSON string).

Actual Behavior

Just a message without schema

Steps to Reproduce

command: prefect block types inspect

parkedwards commented 3 months ago

hey @patonavarro , couple followup questions:

what's your prefect CLI version?

➜ prefect --version

when you make your inspect command, are you passing in a type slug?

➜ prefect block type inspect <slug>

in order to find all available slugs, try:

➜ prefect block type ls
mitchnielsen commented 3 months ago

I noticed the other day that you need at least version 3.0.0rc to have the feature merged in https://github.com/PrefectHQ/prefect/commit/0b359a7a03daab3021402869c2cd7dc79049f5d5:

~/code/github.com/prefecthq/prefect/main
$ git tag --contains 0b359a7a03daab3021402869c2cd7dc79049f5d5 | grep -v 'prefect-'
3.0.0rc1
3.0.0rc10
3.0.0rc11
3.0.0rc12
3.0.0rc13
3.0.0rc14
3.0.0rc15
3.0.0rc2
3.0.0rc3
3.0.0rc4
3.0.0rc5
3.0.0rc6
3.0.0rc7
3.0.0rc8
3.0.0rc9