terraform-aws-autoscaling icon indicating copy to clipboard operation
terraform-aws-autoscaling copied to clipboard

fix: Add depends_on for aws_autoscaling_policy

Open TomasKohout opened this issue 4 months ago β€’ 1 comments

Description

Right now, it's not possible to create aws_autoscaling_policy because it will fail on validation (no target group attached).

Error: creating Auto Scaling Policy (request-count-per-target): operation error Auto Scaling: PutScalingPolicy, https response error StatusCode: 400, RequestID: xxxxxx, api error ValidationError: Target group not attached to the Auto Scaling group

Motivation and Context

Will attachment before creating the scaling policy.

Breaking Changes

How Has This Been Tested?

  • [ ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • [x] I have tested and validated these changes using one or more of the provided examples/* projects
  • [x] I have executed pre-commit run -a on my pull request

TomasKohout avatar Oct 10 '24 16:10 TomasKohout