Skip to content
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

Support for virtual endpoints for Postgres Flexible Servers #25803

Closed
1 task done
kingnathanal opened this issue Apr 30, 2024 · 7 comments · Fixed by #26708
Closed
1 task done

Support for virtual endpoints for Postgres Flexible Servers #25803

kingnathanal opened this issue Apr 30, 2024 · 7 comments · Fixed by #26708

Comments

@kingnathanal
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

Azure has recently added support for promoting Postgres Flexible server read replica to primary, virtual endpoints are a way to create a single endpoint for referencing the primary server.

Learn docs

New or Affected Resource(s)/Data Source(s)

azurerm_postgresql_flexible_server

Potential Terraform Configuration

resource "azurerm_postgresql_flexible_server_virtual_endpoint" "this" {
  name = "virtual_endpoint_name"
  primary_server_id = azurerm_postgresql_flexible_server.primary_server.id
  read_server_id = azurerm_postgresql_flexible_server.replica_server.id
}

References

No response

@fahimthanawala1

This comment was marked as off-topic.

@acoba33

This comment was marked as duplicate.

@Pinaki-1

This comment was marked as duplicate.

@ori-21
Copy link

ori-21 commented Jul 18, 2024

Is it possible to create virtual endpoints for Postgres Flexible Servers using terraform or it is not supported yet?

i tried the suggested terraform code above but the provider hashicorp/azurerm does not support resource type
"azurerm_postgresql_flexible_server_virtual_endpoint"

Does anyone know any other solution?

Thank you in advance!

@ori-21
Copy link

ori-21 commented Aug 28, 2024

So , finally can we use this resource now? Because i tried and got:
Error: Invalid resource type
on virtual_endpoint.tf line 1, in resource "azurerm_postgresql_flexible_server_virtual_endpoint" "virtual-endpoint":
resource "azurerm_postgresql_flexible_server_virtual_endpoint" "virtual-endpoint" {
The provider hashicorp/azurerm does not support resource type "azurerm_postgresql_flexible_server_virtual_endpoint".

@Krusty93
Copy link

So , finally can we use this resource now? Because i tried and got: Error: Invalid resource type on virtual_endpoint.tf line 1, in resource "azurerm_postgresql_flexible_server_virtual_endpoint" "virtual-endpoint": resource "azurerm_postgresql_flexible_server_virtual_endpoint" "virtual-endpoint" { The provider hashicorp/azurerm does not support resource type "azurerm_postgresql_flexible_server_virtual_endpoint".

You need version 3.116

Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
7 participants