-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
New Resource - azurerm_data_factory_linked_service_blob_[blob|storage|sfpt] #6366
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the new resources @markti!
Over all these look great and i've left some minor comments inline. In addition to these could we add documentation for the new resource? thanks!
azurerm/internal/services/datafactory/resource_arm_data_factory_linked_service_blob_storage.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/datafactory/resource_arm_data_factory_linked_service_blob_storage.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/datafactory/resource_arm_data_factory_linked_service_blob_storage.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/datafactory/resource_arm_data_factory_linked_service_blob_storage.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/datafactory/resource_arm_data_factory_linked_service_blob_storage.go
Outdated
Show resolved
Hide resolved
} | ||
|
||
resource "azurerm_data_factory_linked_service_blob_storage" "test" { | ||
name = "acctestlssql%d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For any property that accepts capitals could we use some to ensure the api handles them correctly?
} | ||
|
||
resource "azurerm_data_factory" "test" { | ||
name = "acctestdf%d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For any property that accepts capitals could we use some to ensure the api handles them correctly?
...nal/services/datafactory/tests/resource_arm_data_factory_linked_service_blob_storage_test.go
Outdated
Show resolved
Hide resolved
...nal/services/datafactory/tests/resource_arm_data_factory_linked_service_blob_storage_test.go
Outdated
Show resolved
Hide resolved
...nal/services/datafactory/tests/resource_arm_data_factory_linked_service_blob_storage_test.go
Outdated
Show resolved
Hide resolved
Thanks! |
@markti, documentation generation is still fairly new and most resources are written without it. You should be able to just copy some of the existing documentation and only have to make minor changes. For terrafmt it could be a bunch of things, but you can just run it on the files listed in the output (or the entire provider) and it'll automatically fix it 🙂 And of course, i'm not sure what you mean by the authentication type? the parse function & id type? (also feel free to reach out to me on our community slack if you'd like - link in our readme) |
@katbyte sorry I made some updates to the code, some renaming of files which caused some of your feedback to become outdated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markti, documentation generation is still fairly new and most resources are written without it. You should be able to just copy some of the existing documentation and only have to make minor changes.
For terrafmt it could be a bunch of things, but you can just run it on the files listed in the output (or the entire provider) and it'll automatically fix it 🙂
And of course, i'm not sure what you mean by the authentication type? the parse function & id type? (also feel free to reach out to me on our community slack if you'd like - link in our readme)
@katbyte I'm running terrafmt on the files
"terrafmt -f -v ./path/to/file.go" but it is telling me that "0/3 blocks need formatting"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for those changes! aside from some files being renamed (which i will do now) this ltgm now 🙂
This has been released in version 2.18.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.18.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Feature #4029
Feature #6365
Feature #6167
Feature #6413
Feature #6166
First time writing in golang, ever. First time contributor. Please be nice to me. :o)
W.r.t. the Web Linked service. I did not implement Basic / ClientCredential. Is that ok? Assuming I get everything working would it be included in the provider without all authentication types supported?
I have a problem with the acceptance tests. They fail on the data.ImportStep(). I was unable to test these resources because I'm unfamiliar with how to test a terraform provider plugin. When I run the acceptance tests, I see new resource groups / data factories provisioned in my Azure Subscription. I assume this means that the Data Factory / Linked Service deployed properly but maybe I am not loading the API response back into state properly. Any idea why I am getting these errors in Acceptance test?
A couple questions from a newbie:
Thank you so much in advance!
Mark
(fixes #4029 fixes #6365 fixes #6167 fixes #6413 fixes #6166)