Skip to content
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

Fix: FindScheduledAction in aws_appautoscaling #34382

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
Loading