Skip to content
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

Feature/multiple crons v6 #53

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix timezone
  • Loading branch information
lucasmacedot committed Aug 26, 2024
commit 2ec80bea4452610a0b29b0a0917de89f136c673d
2 changes: 1 addition & 1 deletion _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ variable "task_role_policies" {
description = "Custom policies to be added on the task role."
}

variable "timezone" {
variable "schedule_timezone" {
type = string
default = "UTC"
}
3 changes: 1 addition & 2 deletions appautoscaling.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ resource "aws_appautoscaling_scheduled_action" "scale_in_schedules" {
resource_id = aws_appautoscaling_target.ecs[0].resource_id
scalable_dimension = aws_appautoscaling_target.ecs[0].scalable_dimension
schedule = each.value.cron
timezone = var.timezone

timezone = var.schedule_timezone
scalable_target_action {
min_capacity = 0
max_capacity = 0
Expand Down
Loading