terraform-aws-autoscaling
terraform-aws-autoscaling copied to clipboard
fix: Add depends_on for aws_autoscaling_policy
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