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.61k stars 9k forks source link

[Bug]: Unable to create EC2 Network Insights Path without optional parameter #38132

Open michal-kosinski opened 1 week ago

michal-kosinski commented 1 week ago

Terraform Core Version

1.8.x

AWS Provider Version

5.55.0

Affected Resource(s)

aws_ec2_network_insights_path

Expected Behavior

In #33182 the "destination" paramter was made optional, so after defining aws_ec2_network_insights_path resource with only those parameters:

the insights path should be created.

Actual Behavior

Insights path is not created without "destination" parameter provided.

Relevant Error/Panic Output Snippet

Error: creating EC2 Network Insights Path: operation error EC2: CreateNetworkInsightsPath, https response error StatusCode: 400, RequestID: c3096b6d-5547-4629-bd38-741f0da76c85, api error MissingParameter: The request must include either the Destination parameter or the FilterAtSource.DestinationAddress parameter. Add the required parameter and retry the request.

Terraform Configuration Files

resource "aws_ec2_network_insights_path" "this" {
  source           = "eni-xxx"
  destination_ip   = "10.0.0.1"
  destination_port = 443
  protocol         = "tcp"
}

Steps to Reproduce

Try to create insights path without optional "destination" parameter.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No

github-actions[bot] commented 1 week ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue