Comments (2)
Hey, thanks for the report, and for being an early adopter!
The provider is currently incomplete, and missing features that would make debugging easier (#42). It's also missing automated tests (#30) so it's possible that I broke this functionality without realizing it.
The only way to troubleshoot right now is to modify the source code to add logging, which is certainly not ideal. I'll look into this issue and get back to you.
from terraform-provider-prefect.
Hi Johnathan, thanks for the reply. I have zero experience in Go, but still I gave it a shot and managed to hack my way through it.
What I found out is that calls like the one below in the internal\provider\resources\work_pool.go file yielded objects that had empty ApiKey strings, not "inheriting" from the api.PrefectClient object that was part of the resource object.
client, err := r.client.WorkPools(model.AccountID.ValueUUID(), model.WorkspaceID.ValueUUID())
So I patched things up by explicitly passing on the ApiKey as an aditional argument to the client factory methods, such as
client, err := r.client.WorkPools(model.AccountID.ValueUUID(), model.WorkspaceID.ValueUUID(), r.client.ApiKey())
With that out of the way, I've been working on exposing additional resources, such as deployments and flows. It's not pretty, but it works. If you're in any way interested I can share it.
Best regards
Carlos Jourdan
from terraform-provider-prefect.
Related Issues (20)
- bug: on unrelated name change, api_key shows plan change for prefect_service_account HOT 1
- bug: can't import service accounts
- bug: specifying a work-pool base_job_template (on update or create) is causing an inconsistent update error HOT 1
- enhancement: add service accounts filter parameter to enable searching by name
- hygiene: README editorialization + sweep through Schema Descriptions for Provider docs
- Error when creating a `prefect_variable`, issue with `tags`
- Error when attempting to create `prefect_workspace_role`, description is required
- When importing `prefect_workspace_role`, the scopes do not get imported properly HOT 1
- docs: add a user guide on using a bot for the TF provider + needing to add workspace access in the UI for imports
- tests: investigate why variables stored during custom TestCheckFunc are zeros for built-in check functions / import checks
- repo hygiene: paths filter on acceptance tests, to only run when the source go code changes
- `prefect_work_pool` creation on Prefect Server HOT 3
- Support for block creation HOT 5
- Support for work queues HOT 1
- Prefect Cloud returning 403 when Automations are being set HOT 2
- There's a small typo in the data resource for prefect account
- Granting teams access to workspaces HOT 1
- bug: Work Pools client does not set the apiKey
- bug: `prefect_work_pools` (list fetch) has a type mismatch
- enhancement: clearer error messages upon missing workspaceID HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-prefect.