-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: aws_appautoscaling_scheduled_action start_time and end_time not mantained when updating resources #32616
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
To further check the issue I tried to create the same scheduled action via CLI, so:
aws application-autoscaling put-scheduled-action
\ --scheduled-action-name all_days_shift_weekend
\ --service-namespace ecs
\ --schedule "cron(00 19 ? * FRI *)"
\ --timezone Europe/Rome
\ --resource-id service/cluster/service
\ --scalable-dimension ecs:service:DesiredCount
\ --scalable-target-action MinCapacity=2,MaxCapacity=2
\ --start-time 2023-07-19T13:00:00+02:00
\ --end-time 2023-07-27T13:00:00+02:00
So it seems like that on modification of resources, terraform passes to AWS only the changed values, but in this case the resource want it all, even if the object on AWS is updated and not deleted and recreated (you can see that "CreationTime" remains the same) |
This functionality has been released in v5.42.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.5.3
AWS Provider Version
5.8.0
Affected Resource(s)
aws_appautoscaling_scheduled_action
Expected Behavior
When updating a aws_appautoscaling_scheduled_action resource, all the previously configured settings are maintained
Actual Behavior
When updating a aws_appautoscaling_scheduled_action resource, the previously configured start_time and end_time are lost
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
aws application-autoscaling describe-scheduled-actions --service-namespace ecs
and see that start_time and end_time are presentaws application-autoscaling describe-scheduled-actions --service-namespace ecs
and see that start_time and end_time are not present anymoreDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: