Skip to content

Commit

Permalink
r/aws_cloudwatch_event_target: Set 'force_destroy' to 'true' in sweeper.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Apr 26, 2024
1 parent a9ae479 commit f145283
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/service/events/sweep.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ func sweepRules(region string) error {
r := resourceRule()
d := r.Data(nil)
d.SetId(ruleCreateResourceID(eventBusName, ruleName))
d.Set("force_destroy", true)

sweepResources = append(sweepResources, sweep.NewSweepResource(r, d, client))
}
Expand Down Expand Up @@ -357,6 +358,7 @@ func sweepTargets(region string) error {
d := r.Data(nil)
d.SetId(targetCreateResourceID(eventBusName, ruleName, targetID))
d.Set("event_bus_name", eventBusName)
d.Set("force_destroy", true)
d.Set("rule", ruleName)
d.Set("target_id", targetID)

Expand Down

0 comments on commit f145283

Please sign in to comment.