sbercloud-terraform / terraform-provider-sbercloud

Terraform SberCloud Provider
https://registry.terraform.io/providers/sbercloud-terraform/sbercloud/latest/docs
Mozilla Public License 2.0
34 stars 21 forks source link

Incorrect documentation. missing resource #259

Open randreev1321 opened 10 months ago

randreev1321 commented 10 months ago

Terraform Version

1.6.6

Provider version

1.11.6

Affected Resource(s)

Terraform Configuration Files

resource "sbercloud_lb_loadbalancer" "lb" {
  ...
}

resource "sbercloud_vpc_eip_associate" "eip_lb" {

  public_ip = data.sbercloud_vpc_eip.ingress_eip.public_ip
  port_id   = sbercloud_lb_loadbalancer.lb.vip_port_id
}

Panic Output

│ Error: Invalid resource type
│ 
│   on lb.tf line 14, in resource "sbercloud_vpc_eip_associate" "eip_lb":
│   14: resource "sbercloud_vpc_eip_associate" "eip_lb" {
│ 
│ The provider sbercloud-terraform/sbercloud does not support resource type "sbercloud_vpc_eip_associate".

Expected Behavior

the resource must be created according to the documentation https://registry.terraform.io/providers/sbercloud-terraform/sbercloud/latest/docs/resources/lb_loadbalancer#loadbalancer-with-eip

Actual Behavior

error received

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform validate
randreev1321 commented 10 months ago

I fixed my issue with EIP binding by using the "sbercloud_networking_eip_associate" resource.

Added #262 PR.

BurMachine commented 9 months ago

Hello, we will add your PR in the next release