-
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
[Discussion] - Contributors guide new resource vs inline #19129
Conversation
thats for opening this @aristosvo - and provided such a great writeup for the contrib docs A going to drop in my comments from the other PR and a few thoughts: IMHO i think a 1:1 relation alone is reason enough to consider adding functionality to the existing resource. Even more so when it really is just "enabling/configuring feature X on resource Y". i think its a better user experience to have
there are times where it does not make sense/can't be: ie CMK where the resource has to be created, permissions updated, and then CMK applied or users may want to configure it separately (adding network ules) or users may want to configure it in both places: seems like you've covered most of this already with what you've written 😄 |
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 again for this @aristosvo! - leaving some minor comments inline for when @tombuildsstuff loops back for a final look
Co-authored-by: kt <[email protected]>
Co-authored-by: kt <[email protected]>
Co-authored-by: kt <[email protected]>
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.
LGTM 🍄
…9129) Co-authored-by: kt <[email protected]>
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Goal
To put my thoughts in a doc and start a little discussion, align practices, avoid unnecessary (re)work.
Why
I've been struggling a bit with this the last few days and also before when contributing resources/properties like:
azurerm_sql_active_directory_administrator
- Support forazuread_authentication_only
#14172, New Resource:azurerm_sql_managed_instance_active_directory_administrator
#14104,azurerm_mssql_database
: Fixextended_auditing_policy
for Secondaries #13799,azurerm_mssql_server
: Support forazuread_authentication_only
#13754)azurerm_key_vault_key_rotation_policy
- New resource #18603,azurerm_key_vault_key
-rotation_policy
block added #19113)Other resources like VNet/Subnets/NSGs have their troubles as well, not only from a contributor perspective but also from a user perspective with security boundaries between
Infra Teams
,Networking Teams
,Application Teams
etc. Not gonna solve that with this one and only doc, but maybe as a 'best practices' spin-off.I'm not aware if there is any previous work done or talks on this topic, maybe a nice one for HashiTalks: Build.
Status
First Draft