-
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
sweepers: Add aws_ssm_patch_baseline
and aws_ssm_default_patch_baseline
#27658
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 sweep SWEEPARGS=-sweep-run=aws_ssm_default_patch_baseline,aws_ssm_patch_baseline
# 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 -sweep-run=aws_ssm_default_patch_baseline,aws_ssm_patch_baseline -timeout 60m
2022/11/07 07:05:01 [DEBUG] Running Sweepers for region (us-west-2):
2022/11/07 07:05:01 [DEBUG] Running Sweeper (aws_ssm_default_patch_baseline) in region (us-west-2)
2022/11/07 07:05:01 [INFO] Retrieved credentials from "EnvConfigCredentials"
2022/11/07 07:05:01 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2022/11/07 07:05:01 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2022/11/07 07:05:02 [DEBUG] Completed Sweeper (aws_ssm_default_patch_baseline) in region (us-west-2) in 1.635739043s
2022/11/07 07:05:02 [DEBUG] Sweeper (aws_ssm_patch_baseline) has dependency (aws_ssm_default_patch_baseline), running..
2022/11/07 07:05:02 [DEBUG] Sweeper (aws_ssm_default_patch_baseline) already ran in region (us-west-2)
2022/11/07 07:05:02 [DEBUG] Running Sweeper (aws_ssm_patch_baseline) in region (us-west-2)
2022/11/07 07:05:03 [DEBUG] Completed Sweeper (aws_ssm_patch_baseline) in region (us-west-2) in 124.600686ms
2022/11/07 07:05:03 Completed Sweepers for region (us-west-2) in 1.760660724s
2022/11/07 07:05:03 Sweeper Tests for region (us-west-2) ran successfully:
- aws_ssm_default_patch_baseline
- aws_ssm_patch_baseline
2022/11/07 07:05:03 [DEBUG] Running Sweepers for region (us-east-1):
2022/11/07 07:05:03 [DEBUG] Running Sweeper (aws_ssm_default_patch_baseline) in region (us-east-1)
2022/11/07 07:05:03 [INFO] Retrieved credentials from "EnvConfigCredentials"
2022/11/07 07:05:03 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2022/11/07 07:05:03 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2022/11/07 07:05:04 [DEBUG] Completed Sweeper (aws_ssm_default_patch_baseline) in region (us-east-1) in 1.174392236s
2022/11/07 07:05:04 [DEBUG] Sweeper (aws_ssm_patch_baseline) has dependency (aws_ssm_default_patch_baseline), running..
2022/11/07 07:05:04 [DEBUG] Sweeper (aws_ssm_default_patch_baseline) already ran in region (us-east-1)
2022/11/07 07:05:04 [DEBUG] Running Sweeper (aws_ssm_patch_baseline) in region (us-east-1)
2022/11/07 07:05:04 [DEBUG] Waiting for state to become: [success]
2022/11/07 07:05:04 [DEBUG] Waiting for state to become: [success]
2022/11/07 07:05:04 [INFO] Deleting SSM Patch Baseline: pb-0dabef16e8de4b38e
2022/11/07 07:05:04 [INFO] Deleting SSM Patch Baseline: pb-039472c1e636ce439
2022/11/07 07:05:04 [DEBUG] Waiting for state to become: [success]
2022/11/07 07:05:04 [INFO] Deleting SSM Patch Baseline: pb-0965331a76ebf442f
2022/11/07 07:05:04 [DEBUG] Completed Sweeper (aws_ssm_patch_baseline) in region (us-east-1) in 251.147511ms
2022/11/07 07:05:04 Completed Sweepers for region (us-east-1) in 1.425681137s
2022/11/07 07:05:04 Sweeper Tests for region (us-east-1) ran successfully:
- aws_ssm_default_patch_baseline
- aws_ssm_patch_baseline
2022/11/07 07:05:04 [DEBUG] Running Sweepers for region (us-east-2):
2022/11/07 07:05:04 [DEBUG] Running Sweeper (aws_ssm_default_patch_baseline) in region (us-east-2)
2022/11/07 07:05:04 [INFO] Retrieved credentials from "EnvConfigCredentials"
2022/11/07 07:05:04 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2022/11/07 07:05:04 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2022/11/07 07:05:05 [DEBUG] Completed Sweeper (aws_ssm_default_patch_baseline) in region (us-east-2) in 818.720408ms
2022/11/07 07:05:05 [DEBUG] Sweeper (aws_ssm_patch_baseline) has dependency (aws_ssm_default_patch_baseline), running..
2022/11/07 07:05:05 [DEBUG] Sweeper (aws_ssm_default_patch_baseline) already ran in region (us-east-2)
2022/11/07 07:05:05 [DEBUG] Running Sweeper (aws_ssm_patch_baseline) in region (us-east-2)
2022/11/07 07:05:05 [DEBUG] Completed Sweeper (aws_ssm_patch_baseline) in region (us-east-2) in 64.866138ms
2022/11/07 07:05:05 Completed Sweepers for region (us-east-2) in 883.692833ms
2022/11/07 07:05:05 Sweeper Tests for region (us-east-2) ran successfully:
- aws_ssm_default_patch_baseline
- aws_ssm_patch_baseline
ok github.com/hashicorp/terraform-provider-aws/internal/sweep 8.761s
This functionality has been released in v4.40.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. |
Adds sweepers for
aws_ssm_patch_baseline
andaws_ssm_default_patch_baseline
Relates #27610
Output from Acceptance Testing