-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Implement azurerm_automation_certificate #4785
Implement azurerm_automation_certificate #4785
Conversation
azurerm_automation_certificate
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 resource @dowlingw,
Overall this is off to a great start! i've left some comments inline that need to be addressed before merge
I think this should be ready to go, please have a look and let me know if you've got any further feedback <3 |
Co-Authored-By: kt <kt@katbyte.me>
Co-Authored-By: kt <kt@katbyte.me>
Co-Authored-By: kt <kt@katbyte.me>
-- * Validation for schema elements * Stop setting Computed properties on creation * Renamed/ordered variables for readability and consistency
-- * Wrote script to re-generate test certificate
-- * Adding test for certificate rename * Refactor back into single CreateUpdate method
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.
hey @dowlingw
Thanks for this PR - apologies for the delayed review here!
Taking a look through this looks pretty good - I've left some minor comments inline (which, I hope you don't mind but I'm going to push a commit to fix & rebase this on top of master so that we can get this merged) - but this is otherwise looking good to me 👍
Thanks!
Tests pass:
|
dismissing since changes have been pushed
No problems whatsoever, thanks for sorting those out - cheers :) |
This has been released in version 1.40.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 = "~> 1.40.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 👉 hashibot-feedback@hashicorp.com. Thanks! |
Implement
azurerm_automation_certificate
as requested in #3881Overview of changes:
automation
clientazurerm_automation_certificate
Notes
This is my first attempt at Terraform provider code, any feedback about how this could be done better or differently would be appreciated.
I've elected to set
Computed: true
on theis_exportable
andthumbprint
resource properties, even though these can be set on the Create/Update calls - these are extracted from the provided certificate and returned in any REST responses. I've validated this for thethumbprint
property but not foris_exportable
. I can't imagine anyone would need to doubly specify this.