Skip to content

Commit

Permalink
Merge pull request #34382 from colinfish-toast/b-aws_appautoscaling_f…
Browse files Browse the repository at this point in the history
…ind_scheduled_action

Fix: FindScheduledAction in aws_appautoscaling
  • Loading branch information
ewbankkit committed Mar 18, 2024
2 parents 7958930 + ac57a54 commit 12413a5
Show file tree
Hide file tree
Showing 8 changed files with 240 additions and 246 deletions.
3 changes: 3 additions & 0 deletions .changelog/34382.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_appautoscaling_scheduled_action: Read correct resource by using `scalable_dimension` as an additional filter
```
13 changes: 13 additions & 0 deletions internal/service/appautoscaling/exports_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package appautoscaling

// Exports for use in tests only.
var (
ResourcePolicy = resourcePolicy
ResourceScheduledAction = resourceScheduledAction
ResourceTarget = resourceTarget

FindScheduledActionByFourPartKey = findScheduledActionByFourPartKey
)
51 changes: 0 additions & 51 deletions internal/service/appautoscaling/find.go

This file was deleted.

4 changes: 2 additions & 2 deletions internal/service/appautoscaling/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const (
ResNamePolicy = "Policy"
)

// @SDKResource("aws_appautoscaling_policy")
func ResourcePolicy() *schema.Resource {
// @SDKResource("aws_appautoscaling_policy", name="Scaling Policy")
func resourcePolicy() *schema.Resource {
return &schema.Resource{
CreateWithoutTimeout: resourcePolicyCreate,
ReadWithoutTimeout: resourcePolicyRead,
Expand Down
Loading

0 comments on commit 12413a5

Please sign in to comment.