Adds depends_on_service, which takes a service object to ensure that several autoscaling resources are recreated when the service is recreated. Without this, recreating the service will cause a syntax error in the autoscaling module due to a state <-> reality mismatch for the appautoscaling target and policies, as AWS removes them automatically when the service is destroyed.
I have made this variable optional to maintain backwards compatibility, but anyone looking to take advantage of app autoscaling support with a Terraform-managed service should use the variable. You can find an example of its use in examples/sqs-scaling.
Adds
depends_on_service
, which takes a service object to ensure that several autoscaling resources are recreated when the service is recreated. Without this, recreating the service will cause a syntax error in the autoscaling module due to a state <-> reality mismatch for the appautoscaling target and policies, as AWS removes them automatically when the service is destroyed.I have made this variable optional to maintain backwards compatibility, but anyone looking to take advantage of app autoscaling support with a Terraform-managed service should use the variable. You can find an example of its use in examples/sqs-scaling.
PLAT-3136