v2.0.0 - Blocks Support
We're thrilled to announce that Prefect Blocks are now supported in the Terraform Provider!
resource prefect_block {}
-> manage your Prefect configuration objects and secrets through IaCresource prefect_block_access {}
-> finely tune your Block ACLs for tightly controlled permissionsdata prefect_block {}
-> query existing Blocks byname
orID
resource "prefect_block" "my_secret" {
name = "my-secret"
type_slug = "secret"
data = jsonencode({
"value" = "foobar"
})
workspace_id = data.prefect_workspace.my_workspace.id
}
# Grant all Actors/Teams the appropriate Manage or View access to the Block
resource "prefect_block_access" "custom_access" {
block_id = prefect_block.my_secret.id
manage_actor_ids = [prefect_service_account.bot.actor_id]
view_actor_ids = [data.prefect_account_member.user.actor_id]
manage_team_ids = [data.prefect_team.eng.id]
workspace_id = data.prefect_workspace.my_workspace.id
}
What's Changed
Exciting New Features 🎉
- Add BlockType, BlockTypeClient by @mitchnielsen in #176
- feat(blocks): add BlockDocument HTTP client by @parkedwards in #178
- feat(blocks): scaffold resource, schema, and pointer method shells by @parkedwards in #188
- Implement Read method for BlockSource by @mitchnielsen in #193
- feat(blocks): add update resource operation by @mitchnielsen in #198
- Add Terraform logging by @mitchnielsen in #211
- Add BlockSchema HTTP client and struct model by @mitchnielsen in #180
- feat(blocks): add create/delete/import resource operations by @parkedwards in #196
- feat(blocks): add
prefect_block_access
resource for binding ACLs to Block resources by @parkedwards in #206
Fixes
- fix(variables): allow workspaceID override in import arguments by @parkedwards in #179
- fix(blocks): always replace Block data on update by @parkedwards in #217
Dependency Updates
- chore(deps): bump golangci/golangci-lint-action from 4 to 5 by @dependabot in #167
- chore(deps): bump github.com/hashicorp/terraform-plugin-docs from 0.16.0 to 0.19.2 by @dependabot in #164
- chore(deps): bump golangci/golangci-lint-action from 5 to 6 by @dependabot in #191
- chore(deps): bump github.com/hashicorp/terraform-plugin-docs from 0.19.2 to 0.19.3 by @dependabot in #189
Documentation
- Add 'Block' to the object support table by @mitchnielsen in #207
New Contributors
- @mitchnielsen made their first contribution in #176
Full Changelog: v0.1.4...v2.0.0