This module allows you to apply a pattern of scheduled EventBridge events to manage your Terraform resources. It could be used to simply create, update or destroy resources on schedule. An example where this pattern could be applied to is when you have Terraform managed resources that are incurring costs during unutilized periods of time. Such a solution to spin resources up and down on schedule could help with significant cost savings.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.
Name | Version |
---|---|
terraform | >= 0.15.0 |
aws | >= 3.73.0 |
random | >= 3.0 |
Name | Version |
---|---|
aws | >= 3.73.0 |
random | >= 3.0 |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
init_command | Terraform command used to initialize working directory. | string |
n/a | yes |
kill_command | Terraform command to destroy the target resources. | string |
n/a | yes |
kill_resources_schedule | Schedule expression in the form of cron or rate expressions. Refer to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html for more details. | string |
n/a | yes |
revive_command | Terraform command to revive/recreate the target resources. | string |
n/a | yes |
revive_resources_schedule | Schedule expression in the form of cron or rate expressions. Refer to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html for more details. | string |
n/a | yes |
source_location | Information about the location of the source code of the Terraform configuration that is being managed. | string |
n/a | yes |
source_type | The type of repository that contains the source code to be built. | string |
n/a | yes |
terraform_version | Version of Terraform. | string |
n/a | yes |
tf_backend_bucket | S3 Backend bucket name | string |
n/a | yes |
tf_backend_key | S3 object key to terraform state file | string |
n/a | yes |
git_personal_access_token | For GitHub or GitHub Enterprise, this is the personal access token. | string |
null |
no |
kill_schedule_state | Whether the schedule should be enabled or disabled. | string |
"ENABLED" |
no |
revive_schedule_state | Whether the schedule should be enabled or disabled. | string |
"ENABLED" |
no |
schedule_timezone | Timezone in which the scheduling expression is evaluated. | string |
"UTC" |
no |
switch_additional_policy_arn | ARN of additional IAM policy for CodeBuild. | string |
null |
no |
No outputs.