1
0

feat: new module ec2-instance-scheduler-sfn

This commit is contained in:
xpk
2026-03-20 20:56:22 +08:00
parent 5e8df07654
commit b74aeac165
3 changed files with 282 additions and 0 deletions
@@ -0,0 +1,36 @@
variable "instance-start-cron-expression" {
type = string
description = "Cron expression for instance start schedule"
}
variable "instance-stop-cron-expression" {
type = string
description = "Cron expression for instance stop schedule"
}
variable "instance-ids" {
type = list(string)
description = "Instances to be automatically started/stopped on schedule"
}
# variable "description" {
# type = string
# description = "A description of instances to be started/stopped on schedule"
# }
variable "cloudwatchlog-retention" {
type = number
description = "Cloudwatch log retention days"
default = 30
}
variable "kms-key-id" {
type = string
description = "CMK id for cloudwatchlog encryption"
}
variable "scheduler-timezone" {
type = string
default = "Asia/Hong_Kong"
description = "Timezone of event scheduler"
}