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

scaleway_documentdb_private_network_endpoint doesn't work as expected with private_network #2588

Closed
D0wn3r opened this issue May 29, 2024 · 0 comments · Fixed by #2608
Closed
Assignees
Labels
bug priority:medium Improvements that are not the main priority rdb Managed MySQL and PostgreSQL issues, bugs and feature requests

Comments

@D0wn3r
Copy link

D0wn3r commented May 29, 2024

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 other comments that do not add relevant new information or questions, 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

Terraform Version

Terraform v1.8.1
on linux_amd64
+ provider registry.terraform.io/hashicorp/local v2.5.1
+ provider registry.terraform.io/scaleway/scaleway v2.41.0

Affected Resource(s)

  • scaleway_documentdb_private_network_endpoint

Terraform Configuration Files

resource "scaleway_documentdb_private_network_endpoint" "main" {
  instance_id    = scaleway_rdb_instance.postgresql.id
  private_network {
    id           = scaleway_vpc_private_network.test_pn.id
    ip_net       = "192.168.0.42/24"
  }
  depends_on = [scaleway_rdb_instance.postgresql]
}

Expected Behavior

I would like it work as the example:

resource "scaleway_vpc_private_network" "pn" {
  name = "my_private_network"
}

resource "scaleway_documentdb_private_network_endpoint" "main" {
  instance_id    = "11111111-1111-1111-1111-111111111111"
  private_network {
    ip_net = "172.16.32.3/22"
    id     = scaleway_vpc_private_network.pn.id
  }
  depends_on = [scaleway_vpc_private_network.pn]
}

Actual Behavior

It provokes an error

│ Error: Missing required argument
│ 
│   on scaleway.tf line 123, in resource "scaleway_documentdb_private_network_endpoint" "main":
│  123: resource "scaleway_documentdb_private_network_endpoint" "main" {
│ 
│ The argument "private_network_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported block type
│ 
│   on scaleway.tf line 125, in resource "scaleway_documentdb_private_network_endpoint" "main":
│  125:   private_network {
│ 
│ Blocks of type "private_network" are not expected here.
@Mia-Cross Mia-Cross added rdb Managed MySQL and PostgreSQL issues, bugs and feature requests bug priority:highest Bugs filled by customers, security issues labels May 29, 2024
@remyleone remyleone added priority:medium Improvements that are not the main priority and removed priority:highest Bugs filled by customers, security issues labels Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority:medium Improvements that are not the main priority rdb Managed MySQL and PostgreSQL issues, bugs and feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants