2024-02-24 02:18:31 +08:00
|
|
|
variable shell-script-path {
|
|
|
|
type = string
|
|
|
|
description = "Full path to script"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable cron-expression {
|
|
|
|
type = string
|
|
|
|
description = "Cron expression for SSM maintenance window schedule"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable instance-id {
|
|
|
|
type = string
|
|
|
|
description = "Id of Ec2 instance to execute the script"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable description {
|
|
|
|
type = string
|
|
|
|
description = "Description of command to run"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable schedule-name {
|
|
|
|
type = string
|
|
|
|
description = "Name of maintenance window. e.g. Daily0900UTC8"
|
2024-02-24 12:21:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable maintenance-window-duration {
|
|
|
|
type = number
|
|
|
|
description = "Duration of maintenance window, must be >= 2"
|
|
|
|
default = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
variable cloudwatch-log-retention-days {
|
|
|
|
type = number
|
|
|
|
description = "Days to retain logs on cloudwatch logs"
|
|
|
|
default = 30
|
2024-02-24 02:18:31 +08:00
|
|
|
}
|