-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_ec2_traffic_mirror_filter_rule: Fix crash when updating rule_number
#32594
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
$ make testacc TESTARGS='-run=TestAccVPCTrafficMirrorFilterRule_' PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run=TestAccVPCTrafficMirrorFilterRule_ -timeout 180m
--- PASS: TestAccVPCTrafficMirrorFilterRule_disappears (17.48s)
--- PASS: TestAccVPCTrafficMirrorFilterRule_basic (57.30s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 60.619s
$ make sweep SWEEPARGS=-sweep-run=aws_ec2_traffic_mirror_filter,aws_ec2_traffic_mirror_target
# make sweep SWEEPARGS=-sweep-run=aws_example_thing
# set SWEEPARGS=-sweep-allow-failures to continue after first failure
WARNING: This will destroy infrastructure. Use only in development accounts.
go test ./internal/sweep -v -tags=sweep -sweep=us-west-2,us-east-1,us-east-2,us-west-1 -sweep-run=aws_ec2_traffic_mirror_filter,aws_ec2_traffic_mirror_target -timeout 60m
2023/07/19 11:55:28 [DEBUG] Running Sweepers for region (us-west-2):
2023/07/19 11:55:28 [DEBUG] Sweeper (aws_ec2_traffic_mirror_filter) has dependency (aws_ec2_traffic_mirror_session), running..
2023/07/19 11:55:28 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_session) in region (us-west-2)
2023/07/19 11:55:28 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_session) in region (us-west-2) in 749.436375ms
2023/07/19 11:55:28 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_filter) in region (us-west-2)
2023/07/19 11:55:28 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_filter) in region (us-west-2) in 129.701042ms
2023/07/19 11:55:28 [DEBUG] Sweeper (aws_ec2_traffic_mirror_session) already ran in region (us-west-2)
2023/07/19 11:55:28 [DEBUG] Sweeper (aws_ec2_traffic_mirror_target) has dependency (aws_ec2_traffic_mirror_session), running..
2023/07/19 11:55:28 [DEBUG] Sweeper (aws_ec2_traffic_mirror_session) already ran in region (us-west-2)
2023/07/19 11:55:28 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_target) in region (us-west-2)
2023/07/19 11:55:29 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_target) in region (us-west-2) in 128.374542ms
2023/07/19 11:55:29 Completed Sweepers for region (us-west-2) in 1.007884333s
2023/07/19 11:55:29 Sweeper Tests for region (us-west-2) ran successfully:
- aws_ec2_traffic_mirror_target
- aws_ec2_traffic_mirror_session
- aws_ec2_traffic_mirror_filter
2023/07/19 11:55:29 [DEBUG] Running Sweepers for region (us-east-1):
2023/07/19 11:55:29 [DEBUG] Sweeper (aws_ec2_traffic_mirror_filter) has dependency (aws_ec2_traffic_mirror_session), running..
2023/07/19 11:55:29 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_session) in region (us-east-1)
2023/07/19 11:55:29 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_session) in region (us-east-1) in 760.916375ms
2023/07/19 11:55:29 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_filter) in region (us-east-1)
2023/07/19 11:55:29 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_filter) in region (us-east-1) in 117.751042ms
2023/07/19 11:55:29 [DEBUG] Sweeper (aws_ec2_traffic_mirror_session) already ran in region (us-east-1)
2023/07/19 11:55:29 [DEBUG] Sweeper (aws_ec2_traffic_mirror_target) has dependency (aws_ec2_traffic_mirror_session), running..
2023/07/19 11:55:29 [DEBUG] Sweeper (aws_ec2_traffic_mirror_session) already ran in region (us-east-1)
2023/07/19 11:55:29 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_target) in region (us-east-1)
2023/07/19 11:55:30 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_target) in region (us-east-1) in 118.69725ms
2023/07/19 11:55:30 Completed Sweepers for region (us-east-1) in 997.618667ms
2023/07/19 11:55:30 Sweeper Tests for region (us-east-1) ran successfully:
- aws_ec2_traffic_mirror_session
- aws_ec2_traffic_mirror_filter
- aws_ec2_traffic_mirror_target
2023/07/19 11:55:30 [DEBUG] Running Sweepers for region (us-east-2):
2023/07/19 11:55:30 [DEBUG] Sweeper (aws_ec2_traffic_mirror_filter) has dependency (aws_ec2_traffic_mirror_session), running..
2023/07/19 11:55:30 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_session) in region (us-east-2)
2023/07/19 11:55:30 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_session) in region (us-east-2) in 589.645917ms
2023/07/19 11:55:30 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_filter) in region (us-east-2)
2023/07/19 11:55:30 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_filter) in region (us-east-2) in 94.913834ms
2023/07/19 11:55:30 [DEBUG] Sweeper (aws_ec2_traffic_mirror_session) already ran in region (us-east-2)
2023/07/19 11:55:30 [DEBUG] Sweeper (aws_ec2_traffic_mirror_target) has dependency (aws_ec2_traffic_mirror_session), running..
2023/07/19 11:55:30 [DEBUG] Sweeper (aws_ec2_traffic_mirror_session) already ran in region (us-east-2)
2023/07/19 11:55:30 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_target) in region (us-east-2)
2023/07/19 11:55:30 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_target) in region (us-east-2) in 96.2395ms
2023/07/19 11:55:30 Completed Sweepers for region (us-east-2) in 781.011375ms
2023/07/19 11:55:30 Sweeper Tests for region (us-east-2) ran successfully:
- aws_ec2_traffic_mirror_session
- aws_ec2_traffic_mirror_filter
- aws_ec2_traffic_mirror_target
2023/07/19 11:55:30 [DEBUG] Running Sweepers for region (us-west-1):
2023/07/19 11:55:30 [DEBUG] Sweeper (aws_ec2_traffic_mirror_filter) has dependency (aws_ec2_traffic_mirror_session), running..
2023/07/19 11:55:30 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_session) in region (us-west-1)
2023/07/19 11:55:31 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_session) in region (us-west-1) in 742.058959ms
2023/07/19 11:55:31 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_filter) in region (us-west-1)
2023/07/19 11:55:31 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_filter) in region (us-west-1) in 131.744416ms
2023/07/19 11:55:31 [DEBUG] Sweeper (aws_ec2_traffic_mirror_session) already ran in region (us-west-1)
2023/07/19 11:55:31 [DEBUG] Sweeper (aws_ec2_traffic_mirror_target) has dependency (aws_ec2_traffic_mirror_session), running..
2023/07/19 11:55:31 [DEBUG] Sweeper (aws_ec2_traffic_mirror_session) already ran in region (us-west-1)
2023/07/19 11:55:31 [DEBUG] Running Sweeper (aws_ec2_traffic_mirror_target) in region (us-west-1)
2023/07/19 11:55:31 [DEBUG] Completed Sweeper (aws_ec2_traffic_mirror_target) in region (us-west-1) in 108.94525ms
2023/07/19 11:55:31 Completed Sweepers for region (us-west-1) in 982.929542ms
2023/07/19 11:55:31 Sweeper Tests for region (us-west-1) ran successfully:
- aws_ec2_traffic_mirror_session
- aws_ec2_traffic_mirror_filter
- aws_ec2_traffic_mirror_target
ok github.com/hashicorp/terraform-provider-aws/internal/sweep 7.033s
This functionality has been released in v5.9.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Corrects attribute name in resource Update.
Relations
Closes #32588.
Output from Acceptance Testing