Skip to content

v2.0.0 - Blocks Support

Compare
Choose a tag to compare
@parkedwards parkedwards released this 19 Jun 04:33
· 53 commits to main since this release
5ff5236

We're thrilled to announce that Prefect Blocks are now supported in the Terraform Provider!

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 🎉

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

New Contributors

Full Changelog: v0.1.4...v2.0.0