-
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
azurerm_private_endpoint
- correct casing issue for private_connection_resource_id
field for Microsoft.DBforPostgreSQL
#12761
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.
@yupwei68, thanks for the PR. LGTM! 🚀
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.
@yupwei68, given this change the return signature of this function also needs to be updated to bubble up the err
to the caller since an error may now occur during the parse
of the ServerID
code execution. Which means if an error does happen with the new code path the new privateConnectionId
would be ""?
@WodansSon Thanks for your comments. When parse returns error, it could be "postgresql flexible server" or other resources, thus I don't change its origin value, it'll be "privateConnectionId = *props.PrivateLinkServiceID" instead of "". |
Ahhh... I see what you are saying... if the return value from the |
Thanks @WodansSon and @mybayern1974 for your review. |
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.
hi @yupwei68
Thanks for this PR.
This looks fine, but I'm wondering if we need to consider this for all of the DBFor
resources, due to the changes in the Azure SDK in v55.7.0
- WDYT?
Thanks!
private_endpoint
private_connection_resource_id
pointing to a postgresql serverazurerm_private_endpoint
- correct casing issue for private_connection_resource_id
field for Microsoft.DBforPostgreSQL
Thanks for your comments. Please continue reviewing. |
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 👍
When importing a PE from portal, possibly the user need to change the hardcode |
This functionality has been released in v2.70.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
There is a ticket from customer.
The customer created a Private Endpoint through portal connecting to a postgresql server.
The PE created is with "PrivateConnectionId" "...Microsoft.DBForPostgreSQL.." instead of "...Microsoft.DBforPostgreSQL..." (wrong casing "F").
Then he imports the PE into TF, and the TF requires a recreation of the PE.
Here we support to be compatible with this problem.