-
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_automation_connection", azurerm_automation_connection_certificate,
azurerm_automation_connection_classic_certificate and
azurerm_automation_connection_service_pricipal`
#6847
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 this PR @njuCZ,
Overall this looks good, but i think it may be better to have three different resources for each type exposing the required properties for each?
azurerm_automation_connection_certificate
, azurerm_automation_connection_classic_certificate
, and azurerm_automation_connection_service_pricipal
. WDYT?
@katbyte because the docs says user could add a custom connection type and required parameters. Creating a connection could choose user's custom connection type. So if we split them into three resources, I am afraid this feature could not be supported. |
@njuCZ - then could we create the three strongly typed resources and then this one can be used for user defined ones? |
@katbyte ok, thanks for your suggestion |
sorry for busy other things yesterday, I will update this PR as soon as possible |
…nection_certificate`, `azurerm_automation_connection_classic_certificate` and `azurerm_automation_connection_service_pricipal`
7beb5c0
to
5d405b4
Compare
,
azurerm_automation_connection_classic_certificate and
azurerm_automation_connection_service_pricipal`
@katbyte I have updated the PR, please have a look |
Any update on when this will be released ? @katbyte |
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 changes @njuCZ, aside from some minor corrections which i've added as suggestions and will commit now - this LGTM 👍
azurerm/internal/services/automation/tests/automation_connection_certificate_resource_test.go
Outdated
Show resolved
Hide resolved
...nternal/services/automation/tests/automation_connection_classic_certificate_resource_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/automation/tests/automation_connection_resource_test.go
Outdated
Show resolved
Hide resolved
.../internal/services/automation/tests/automation_connection_service_principal_resource_test.go
Outdated
Show resolved
Hide resolved
website/docs/r/automation_connection_classic_certificate.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/automation_connection_classic_certificate.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/automation_connection_service_principal.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/automation_connection_service_principal.html.markdown
Outdated
Show resolved
Hide resolved
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! |
automation account API does not provider
run as account
interface, users need to configureservice principal
,automation certificate
andautomation connection
manually.This is the last PR about the flow.
azurerm_automation_connection_certificate
,azurerm_automation_connection_classic_certificate
,azurerm_automation_connection_service_pricipal
coresponds toresource
azurerm_automation_connection_certificate
coresponds to builtin types:Azure
,AzureClassicCertificate
,AzureServicePrincipal
.azurerm_automation_connection
is designed for connecting user's custom connection type. (user could add new types).https://docs.microsoft.com/en-us/azure/automation/automation-connections#connection-types
https://docs.microsoft.com/en-us/azure/automation/automation-connections#add-a-connection-type
relevant issues
#4431
#3881
(fixes #3881)