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

tests/provider: EC2 Traffic Mirror: query returned no results #15866

Closed
YakDriver opened this issue Oct 27, 2020 · 1 comment · Fixed by #15865
Closed

tests/provider: EC2 Traffic Mirror: query returned no results #15866

YakDriver opened this issue Oct 27, 2020 · 1 comment · Fixed by #15865
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/ec2 Issues and PRs that pertain to the ec2 service. service/elbv2 Issues and PRs that pertain to the elbv2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Comments

@YakDriver
Copy link
Member

YakDriver commented Oct 27, 2020

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

Description

These tests fails on GovCloud:


TestAccAWSEc2TrafficMirrorSession_basic
TestAccAWSEc2TrafficMirrorSession_disappears
TestAccAWSEc2TrafficMirrorSession_tags
TestAccAWSEc2TrafficMirrorTarget_eni


With this error: Your query returned no results. Please change your search criteria and try again..

New or Affected Resource(s)

  • aws_ec2_traffic_mirror_target
  • aws_ec2_traffic_mirror_session

Terraform Configuration Files

Example config:

resource "aws_instance" "src" {
  ami           = data.aws_ami.amzn-ami-minimal-hvm-ebs.id
  instance_type = "m5.large" # m5.large required because only Nitro instances support mirroring
  subnet_id     = aws_subnet.sub1.id

  tags = {
    Name = "yak mirror"
  }
}

resource "aws_lb" "lb" {
  name               = "yak-mirror"
  internal           = true
  load_balancer_type = "network"
  subnets            = [aws_subnet.sub1.id, aws_subnet.sub2.id]

  enable_deletion_protection = false

  tags = {
    Name        = "yak mirror"
    Environment = "production"
  }
}

resource "aws_ec2_traffic_mirror_filter" "filter" {
}

resource "aws_ec2_traffic_mirror_target" "target" {
  network_load_balancer_arn = aws_lb.lb.arn
}

Debug Output

estAccAWSEc2TrafficMirrorSession_basic: resource_aws_ec2_traffic_mirror_session_test.go:27: Step 1/4 error: Error running pre-apply refresh: 2020/10/27 09:21:37 [DEBUG] Using modified User-Agent: Terraform/0.12.29 HashiCorp-terraform-exec/0.10.0
        
        Error: Your query returned no results. Please change your search criteria and try again.

--- FAIL: TestAccAWSEc2TrafficMirrorSession_basic (2.48s)

References

@YakDriver YakDriver added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. partition/aws-us-gov Pertains to the aws-us-gov partition. labels Oct 27, 2020
@ghost ghost added service/ec2 Issues and PRs that pertain to the ec2 service. service/elbv2 Issues and PRs that pertain to the elbv2 service. labels Oct 27, 2020
@ghost
Copy link

ghost commented Nov 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/ec2 Issues and PRs that pertain to the ec2 service. service/elbv2 Issues and PRs that pertain to the elbv2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant