-
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_db_cluster_snapshot: Add test sweeper #13301
Conversation
Removing WIP as I will wait until #13313 is merged for the filtering package. Re-ran test: $ TEST=./aws SWEEP=us-west-2,us-east-1 SWEEPARGS=-sweep-run=aws_db_cluster_snapshot make sweep
WARNING: This will destroy infrastructure. Use only in development accounts.
go test ./aws -v -sweep=us-west-2,us-east-1 -sweep-run=aws_db_cluster_snapshot -timeout 60m
2020/05/19 17:14:44 [DEBUG] Running Sweepers for region (us-west-2):
2020/05/19 17:14:44 [DEBUG] Running Sweeper (aws_db_cluster_snapshot) in region (us-west-2)
2020/05/19 17:14:44 [INFO] Building AWS auth structure
2020/05/19 17:14:44 [INFO] Setting AWS metadata API timeout to 100ms
2020/05/19 17:14:45 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2020/05/19 17:14:45 [INFO] AWS Auth provider used: "EnvProvider"
2020/05/19 17:14:45 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2020/05/19 17:14:45 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2020/05/19 17:14:46 [INFO] Deleting RDS DB Cluster Snapshot: test001
2020/05/19 17:14:47 [INFO] Deleting RDS DB Cluster Snapshot: test002
2020/05/19 17:14:47 Sweeper Tests ran successfully:
- aws_db_cluster_snapshot
2020/05/19 17:14:47 [DEBUG] Running Sweepers for region (us-east-1):
2020/05/19 17:14:47 [DEBUG] Running Sweeper (aws_db_cluster_snapshot) in region (us-east-1)
2020/05/19 17:14:47 [INFO] Building AWS auth structure
2020/05/19 17:14:47 [INFO] Setting AWS metadata API timeout to 100ms
2020/05/19 17:14:49 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2020/05/19 17:14:49 [INFO] AWS Auth provider used: "EnvProvider"
2020/05/19 17:14:49 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2020/05/19 17:14:49 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2020/05/19 17:14:49 Sweeper Tests ran successfully:
- aws_db_cluster_snapshot
ok github.com/terraform-providers/terraform-provider-aws/aws 5.852s @bflad Ready for re-review. |
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.
Thanks, @ewbankkit! 🚀 (I'm not sure if there's anything we can do with the shared RDS architecture friends (Neptune/DocDB) from joining the party here, but deleting everything is okay for now.)
Output from sweeper in AWS Commercial:
2020/05/19 23:50:59 [DEBUG] Running Sweepers for region (us-west-2):
2020/05/19 23:50:59 [DEBUG] Running Sweeper (aws_db_cluster_snapshot) in region (us-west-2)
...
2020/05/19 23:51:02 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-6284739189931617431
2020/05/19 23:51:02 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-7694211504628872151
2020/05/19 23:51:03 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-7712270125278830714
2020/05/19 23:51:03 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1034835137897245353
2020/05/19 23:51:04 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1034835137897245353-incorrect
2020/05/19 23:51:04 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1177744522386226699
2020/05/19 23:51:05 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1894715743644967502
2020/05/19 23:51:05 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1894715743644967502-incorrect
2020/05/19 23:51:05 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-2403831695778869292
2020/05/19 23:51:06 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-3154394584652669178
2020/05/19 23:51:06 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-3672590285800438157
2020/05/19 23:51:07 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-3672590285800438157-incorrect
2020/05/19 23:51:07 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-6818628255720508177
2020/05/19 23:51:08 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-7220579075951202508
2020/05/19 23:51:08 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-8478413316652622710
2020/05/19 23:51:09 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-208776221194075115
2020/05/19 23:51:09 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-2818346412137517497
2020/05/19 23:51:10 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-3016656015395871858
2020/05/19 23:51:10 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-4538854897230104146
2020/05/19 23:51:10 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-5252971764716972497
2020/05/19 23:51:11 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-53349618087131557
2020/05/19 23:51:11 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-6236748090645919885
2020/05/19 23:51:12 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-6690196973386539453
2020/05/19 23:51:12 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-6793880297909833423
2020/05/19 23:51:13 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-6844670658230160769
2020/05/19 23:51:13 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-7056488780188601715
2020/05/19 23:51:13 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-7796064647165572057
2020/05/19 23:51:14 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-8786492239320672601
2020/05/19 23:51:14 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-8821321520235073139
2020/05/19 23:51:15 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-8957994553806249343
2020/05/19 23:51:15 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-2298044058867838599
2020/05/19 23:51:16 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-2890564058937333346
2020/05/19 23:51:16 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-408755487276086665
2020/05/19 23:51:17 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-4336233379030840626
2020/05/19 23:51:17 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-4631399137659371329
2020/05/19 23:51:17 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-6777918919246115777
2020/05/19 23:51:18 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-751384545688565201
2020/05/19 23:51:18 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-8660214694146490007
2020/05/19 23:51:19 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-3625374210620980505
2020/05/19 23:51:19 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-4022657527142458865
2020/05/19 23:51:20 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-6649937651949721828
2020/05/19 23:51:20 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-7344132261107189471
2020/05/19 23:51:20 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-7579832565865974620
2020/05/19 23:51:21 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-7880011180435690535
2020/05/19 23:51:21 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-8092261109895566052
2020/05/19 23:51:22 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-8298908575388334331
2020/05/19 23:51:22 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-8992617190947537577
2020/05/19 23:51:23 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-9055254231029142908
2020/05/19 23:51:23 Sweeper Tests ran successfully:
- aws_db_cluster_snapshot
2020/05/19 23:51:23 [DEBUG] Running Sweepers for region (us-east-1):
2020/05/19 23:51:23 [DEBUG] Running Sweeper (aws_db_cluster_snapshot) in region (us-east-1)
...
2020/05/19 23:51:25 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-5692518413222267692
2020/05/19 23:51:25 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-8759945401750079573
2020/05/19 23:51:25 Sweeper Tests ran successfully:
- aws_db_cluster_snapshot
ok github.com/terraform-providers/terraform-provider-aws/aws 28.425s
Output from sweeper in AWS GovCloud (US):
2020/05/19 23:51:37 [DEBUG] Running Sweepers for region (us-gov-west-1):
2020/05/19 23:51:37 [DEBUG] Running Sweeper (aws_db_cluster_snapshot) in region (us-gov-west-1)
...
2020/05/19 23:51:39 Sweeper Tests ran successfully:
- aws_db_cluster_snapshot
ok github.com/terraform-providers/terraform-provider-aws/aws 3.493s
Copy-n-paste and replace |
This has been released in version 2.63.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 for triage. Thanks! |
Output from sweeper in AWS Commercial: ``` 2020/05/19 23:50:59 [DEBUG] Running Sweepers for region (us-west-2): 2020/05/19 23:50:59 [DEBUG] Running Sweeper (aws_db_cluster_snapshot) in region (us-west-2) ... 2020/05/19 23:51:02 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-6284739189931617431 2020/05/19 23:51:02 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-7694211504628872151 2020/05/19 23:51:03 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-7712270125278830714 2020/05/19 23:51:03 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1034835137897245353 2020/05/19 23:51:04 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1034835137897245353-incorrect 2020/05/19 23:51:04 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1177744522386226699 2020/05/19 23:51:05 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1894715743644967502 2020/05/19 23:51:05 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-1894715743644967502-incorrect 2020/05/19 23:51:05 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-2403831695778869292 2020/05/19 23:51:06 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-3154394584652669178 2020/05/19 23:51:06 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-3672590285800438157 2020/05/19 23:51:07 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-3672590285800438157-incorrect 2020/05/19 23:51:07 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-6818628255720508177 2020/05/19 23:51:08 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-7220579075951202508 2020/05/19 23:51:08 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-8478413316652622710 2020/05/19 23:51:09 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-208776221194075115 2020/05/19 23:51:09 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-2818346412137517497 2020/05/19 23:51:10 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-3016656015395871858 2020/05/19 23:51:10 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-4538854897230104146 2020/05/19 23:51:10 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-5252971764716972497 2020/05/19 23:51:11 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-53349618087131557 2020/05/19 23:51:11 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-6236748090645919885 2020/05/19 23:51:12 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-6690196973386539453 2020/05/19 23:51:12 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-6793880297909833423 2020/05/19 23:51:13 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-6844670658230160769 2020/05/19 23:51:13 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-7056488780188601715 2020/05/19 23:51:13 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-7796064647165572057 2020/05/19 23:51:14 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-8786492239320672601 2020/05/19 23:51:14 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-8821321520235073139 2020/05/19 23:51:15 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-docdbcluster-snapshot-8957994553806249343 2020/05/19 23:51:15 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-2298044058867838599 2020/05/19 23:51:16 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-2890564058937333346 2020/05/19 23:51:16 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-408755487276086665 2020/05/19 23:51:17 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-4336233379030840626 2020/05/19 23:51:17 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-4631399137659371329 2020/05/19 23:51:17 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-6777918919246115777 2020/05/19 23:51:18 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-751384545688565201 2020/05/19 23:51:18 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-neptunecluster-snapshot-8660214694146490007 2020/05/19 23:51:19 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-3625374210620980505 2020/05/19 23:51:19 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-4022657527142458865 2020/05/19 23:51:20 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-6649937651949721828 2020/05/19 23:51:20 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-7344132261107189471 2020/05/19 23:51:20 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-7579832565865974620 2020/05/19 23:51:21 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-7880011180435690535 2020/05/19 23:51:21 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-8092261109895566052 2020/05/19 23:51:22 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-8298908575388334331 2020/05/19 23:51:22 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-8992617190947537577 2020/05/19 23:51:23 [INFO] Deleting RDS DB Cluster Snapshot: tf-acctest-rdscluster-snapshot-9055254231029142908 2020/05/19 23:51:23 Sweeper Tests ran successfully: - aws_db_cluster_snapshot 2020/05/19 23:51:23 [DEBUG] Running Sweepers for region (us-east-1): 2020/05/19 23:51:23 [DEBUG] Running Sweeper (aws_db_cluster_snapshot) in region (us-east-1) ... 2020/05/19 23:51:25 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-5692518413222267692 2020/05/19 23:51:25 [INFO] Deleting RDS DB Cluster Snapshot: tf-acc-test-8759945401750079573 2020/05/19 23:51:25 Sweeper Tests ran successfully: - aws_db_cluster_snapshot ok github.com/terraform-providers/terraform-provider-aws/aws 28.425s ``` Output from sweeper in AWS GovCloud (US): ``` 2020/05/19 23:51:37 [DEBUG] Running Sweepers for region (us-gov-west-1): 2020/05/19 23:51:37 [DEBUG] Running Sweeper (aws_db_cluster_snapshot) in region (us-gov-west-1) ... 2020/05/19 23:51:39 Sweeper Tests ran successfully: - aws_db_cluster_snapshot ok github.com/terraform-providers/terraform-provider-aws/aws 3.493s ```
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! |
Community Note
Closes #12663.
Release note for CHANGELOG:
Output from acceptance testing: