-
Notifications
You must be signed in to change notification settings - Fork 9k
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
cloudfront/distribution: Sweeper infinite loop #33675
Conversation
Community NoteVoting for Prioritization
For Submitters
|
9e28e0b
to
78ff713
Compare
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.
If a sweeper encounters an error, it should return an error. Otherwise, looks good
internal/service/cloudfront/sweep.go
Outdated
var result *multierror.Error | ||
|
||
// sweep: | ||
// 1. Production Distributions | ||
if err := sweepDistributionsByProductionStaging(region, false); err != nil { | ||
result = multierror.Append(result, err) | ||
log.Printf("[WARN] %s", err) | ||
} | ||
|
||
// 2. Continuous Deployment Policies | ||
if err := sweepContinuousDeploymentPolicies(region); err != nil { | ||
result = multierror.Append(result, err) | ||
log.Printf("[WARN] %s", err) | ||
} | ||
|
||
// 3. Staging Distributions | ||
if err := sweepDistributionsByProductionStaging(region, true); err != nil { | ||
result = multierror.Append(result, err) | ||
log.Printf("[WARN] %s", err) | ||
} | ||
|
||
return result.ErrorOrNil() | ||
return nil |
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.
Errors should return errors, not fail silently
This functionality has been released in v5.19.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
Relations
Relates #33663
Relates #33578
References
Output from Acceptance Testing