-
Notifications
You must be signed in to change notification settings - Fork 431
Update storage_credential docs to reference name not id #4684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update storage_credential docs to reference name not id #4684
Conversation
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Show the error that you get - Storage credentials and External locations have We're using |
The terraform apply failed with this error, when I used storage_credential's The apply succeeded when I changed |
Hmmm, works fine for me:
|
Can you share the debug log as per troubleshooting guide? Is storage credential created in workspace or account context? |
@alexott the difference is that @karayount is using the databricks_storage_credentials data source, which exposes the UUID ID on the In this case, this is a bit of technical debt about the definition of the |
Yeah, I missed it. But our docs use resource, not data source... |
Yeah, but it will work with |
@karayount I'm wondering why do we need a data source in your case if you just know the name? Instead of changing the documentation to use |
Ah. I will close this. I missed that the docs were for resource and I was using data, and I found the error surprising. Might be nice to add a data example to the docs too, if folks agree. |
Changes
Updates docs/resources/storage_credential.md examples of creating databricks_grants resources that reference a storage_credential. Previously it had indicated referencing the credential by id. In my case, the name and id are not identical, and referencing credential by id caused errors, where referencing by name did not.
It appears that this package may be written with the assumption that name and id have the same value.
On line 117 of this same storage_credential.md it says
- 'id' - ID of this storage credential - same as the 'name'.
And there is a test
catalog/external_location_test.go
that indicates storage_credential name and id are interchangeableTests
make test
run locallydocs/
folderinternal/acceptance