When i change a parameter of the resource that is versionated, Terraform must creates a new version of the resource and sets the version as default. Nothing more.
Actual Behavior
When i change a paramter on the resource terraform apply fails because is trying to delete a resource that his natural behavior is the versioning. A new version of the AppRunner AutpScaler is created when terraform apply, and i can select this new version on the AWS Console UI but this also creates an undefined state. After creating the new version of the resource, Terraform tries to remove the resource (with all the versions, think).
Relevant Error/Panic Output Snippet
Error: deleting App Runner AutoScaling Configuration Version: operation error AppRunner: DeleteAutoScalingConfiguration, https response error StatusCode: 400, , InvalidRequestException: You can't delete the auto scaling configuration. It's used by one or more services. To delete it, update the services to use other auto scaling configurations.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.9.2
AWS Provider Version
5.59.0
Affected Resource(s)
aws_apprunner_auto_scaling_configuration_version
Expected Behavior
When i change a parameter of the resource that is versionated, Terraform must creates a new version of the resource and sets the version as default. Nothing more.
Actual Behavior
When i change a paramter on the resource
terraform apply
fails because is trying to delete a resource that his natural behavior is the versioning. A new version of the AppRunner AutpScaler is created whenterraform apply
, and i can select this new version on the AWS Console UI but this also creates an undefined state. After creating the new version of the resource, Terraform tries to remove the resource (with all the versions, think).Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Change the max_concurrency from X to Y.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No