hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.74k stars 9.1k forks source link

[Bug]: all icmp can not be set in aws_lightsail_instance_public_ports #30288

Open hirosakaki opened 1 year ago

hirosakaki commented 1 year ago

Terraform Core Version

1.4.2

AWS Provider Version

4.60.0

Affected Resource(s)

aws_lightsail_instance_public_ports

Expected Behavior

no error occurs

Actual Behavior

x Error: expected port_info.0.from_port to be in the range (0 - 65535), got -1

x Error: expected port_info.0.to_port to be in the range (0 - 65535), got -1

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_lightsail_instance_public_ports" "example" {
  instance_name = aws_lightsail_instance.example.name
  port_info {
    protocol   = "icmp"
    from_port  = -1
    to_port    = -1
    cidrs      = ["0.0.0.0/0"]
  }
}

Steps to Reproduce

terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue