Skip to content

Commit

Permalink
feat: Add support of time_zone inside schedules (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ynuyasha committed Oct 8, 2021
1 parent d4b7da0 commit 064ae6a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,14 @@ There are two ways to specify tags for auto-scaling group in this module - `tags
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.44 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.53 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.44 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.53 |
| <a name="provider_null"></a> [null](#provider\_null) | >= 2.0 |

## Modules
Expand Down
1 change: 1 addition & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ module "complete_lt" {
max_size = 0
desired_capacity = 0
recurrence = "0 18 * * 1-5" # Mon-Fri in the evening
time_zone = "Europe/Rome"
}

morning = {
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ resource "aws_autoscaling_schedule" "this" {
desired_capacity = lookup(each.value, "desired_capacity", null)
start_time = lookup(each.value, "start_time", null)
end_time = lookup(each.value, "end_time", null)
time_zone = lookup(each.value, "time_zone", null)

# [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]
# Cron examples: https://crontab.guru/examples.html
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.44"
version = ">= 3.53"
}

null = {
Expand Down

0 comments on commit 064ae6a

Please sign in to comment.