scaleway / terraform-provider-scaleway

Terraform Scaleway provider
https://www.terraform.io/docs/providers/scaleway/
Mozilla Public License 2.0
199 stars 123 forks source link

inbound_rule / outbound_rule `port` leads to unstable state #2467

Closed jlaine closed 2 weeks ago

jlaine commented 6 months ago

Community Note

Terraform Version

Terraform v1.7.5 on linux_amd64

Affected Resource(s)

Terraform Configuration Files

resource "scaleway_instance_security_group" "voip" {
  ...

  outbound_rule {
      action = "accept"
      protocol = "UDP"
      port = 5060
  }
}

Expected Behavior

Applying the plan then running terraform plan should report the infrastructure matches the configuration.

Actual Behavior

Instead, we end up with a plan which wants to update the infrastructure, at least for ports above 1024.

Changing port to port_range = "5060-5060" seems to work around the issue.

Codelax commented 6 months ago

Hi, I tried to reproduce using your snippet but I did not have any issue. Do you have any other rule in your security group that could trigger this unexpected plan ?

jlaine commented 6 months ago

@rbarrois any insights here?

Codelax commented 2 weeks ago

As I could not reproduce and there is no activity, I'll close for now. Feel free to send a message or open another issue if you have any problem.