-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Sweeper: Add sweeper for aws_dms_replication_task
#21554
Conversation
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 sweep SWEEPARGS=-sweep-run=aws_dms_replication_instance
# make sweep SWEEPARGS=-sweep-run=aws_example_thing
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 -sweep-run=aws_dms_replication_instance -timeout 60m
go: downloading github.com/aws/aws-sdk-go v1.41.10
2021/11/03 08:38:56 [DEBUG] Running Sweepers for region (us-west-2):
2021/11/03 08:38:56 [DEBUG] Sweeper (aws_dms_replication_instance) has dependency (aws_dms_replication_task), running..
2021/11/03 08:38:56 [DEBUG] Running Sweeper (aws_dms_replication_task) in region (us-west-2)
2021/11/03 08:38:56 [INFO] AWS Auth provider used: "EnvProvider"
2021/11/03 08:38:56 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/11/03 08:38:56 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/11/03 08:38:57 [DEBUG] Completed Sweeper (aws_dms_replication_task) in region (us-west-2) in 1.42337546s
2021/11/03 08:38:57 [DEBUG] Running Sweeper (aws_dms_replication_instance) in region (us-west-2)
2021/11/03 08:38:58 [DEBUG] Completed Sweeper (aws_dms_replication_instance) in region (us-west-2) in 361.375147ms
2021/11/03 08:38:58 [DEBUG] Sweeper (aws_dms_replication_task) already ran in region (us-west-2)
2021/11/03 08:38:58 Completed Sweepers for region (us-west-2) in 1.784957809s
2021/11/03 08:38:58 Sweeper Tests for region (us-west-2) ran successfully:
- aws_dms_replication_task
- aws_dms_replication_instance
2021/11/03 08:38:58 [DEBUG] Running Sweepers for region (us-east-1):
2021/11/03 08:38:58 [DEBUG] Sweeper (aws_dms_replication_instance) has dependency (aws_dms_replication_task), running..
2021/11/03 08:38:58 [DEBUG] Running Sweeper (aws_dms_replication_task) in region (us-east-1)
2021/11/03 08:38:58 [INFO] AWS Auth provider used: "EnvProvider"
2021/11/03 08:38:58 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/11/03 08:38:58 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/11/03 08:38:59 [DEBUG] Completed Sweeper (aws_dms_replication_task) in region (us-east-1) in 1.580672254s
2021/11/03 08:38:59 [DEBUG] Running Sweeper (aws_dms_replication_instance) in region (us-east-1)
2021/11/03 08:38:59 [DEBUG] Completed Sweeper (aws_dms_replication_instance) in region (us-east-1) in 129.827144ms
2021/11/03 08:38:59 [DEBUG] Sweeper (aws_dms_replication_task) already ran in region (us-east-1)
2021/11/03 08:38:59 Completed Sweepers for region (us-east-1) in 1.710547497s
2021/11/03 08:38:59 Sweeper Tests for region (us-east-1) ran successfully:
- aws_dms_replication_instance
- aws_dms_replication_task
2021/11/03 08:38:59 [DEBUG] Running Sweepers for region (us-east-2):
2021/11/03 08:38:59 [DEBUG] Sweeper (aws_dms_replication_instance) has dependency (aws_dms_replication_task), running..
2021/11/03 08:38:59 [DEBUG] Running Sweeper (aws_dms_replication_task) in region (us-east-2)
2021/11/03 08:38:59 [INFO] AWS Auth provider used: "EnvProvider"
2021/11/03 08:38:59 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/11/03 08:39:00 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/11/03 08:39:00 [DEBUG] Completed Sweeper (aws_dms_replication_task) in region (us-east-2) in 633.732816ms
2021/11/03 08:39:00 [DEBUG] Running Sweeper (aws_dms_replication_instance) in region (us-east-2)
2021/11/03 08:39:00 [DEBUG] Completed Sweeper (aws_dms_replication_instance) in region (us-east-2) in 126.337705ms
2021/11/03 08:39:00 [DEBUG] Sweeper (aws_dms_replication_task) already ran in region (us-east-2)
2021/11/03 08:39:00 Completed Sweepers for region (us-east-2) in 760.135976ms
2021/11/03 08:39:00 Sweeper Tests for region (us-east-2) ran successfully:
- aws_dms_replication_task
- aws_dms_replication_instance
ok github.com/hashicorp/terraform-provider-aws/internal/sweep 8.461s
This functionality has been released in v3.65.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. |
The sweeper for
aws_dms_replication_instance
was failing due to an existingaws_dms_replication_task
. Adds a sweeper foraws_dms_replication_task
to unblock.Also adds a dependency between the
aws_subnet
sweeper and theaws_dms_replication_instance
sweeper, sinceaws_subnet
was blocked.Before change:
After change: