PrefectHQ / terraform-provider-prefect

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

Service Accounts: enable updating Account Role via PATCH #80

Closed parkedwards closed 8 months ago

parkedwards commented 8 months ago

Update: Let's patch the PATCH /bots endpoint to allow modifying the account_role_id. We'll abstract this behavior in the Terraform code....or just do it directly on the existing resource


depends on https://github.com/PrefectHQ/terraform-provider-prefect/issues/78

the PAT endpoint doesn't accept changing the account_role_id, meaning we can't actually update whatever we set upon create. rather than leave this door open, we can rely on the default value that is set when null is passed on create (which is Member), and then use the newly created prefect_account_membership or prefect_account_access resource from #78 and use that as the binder