module "schedule" {
source = "git::ssh://git@github.com/oozou/terraform-aws-eventbridge.git?ref=<version>"
prefix = "oozou"
environment = "devops"
name = "subulu"
schedule_expression = "cron(0/5 * ? * MON-FRI *)"
cloudwatch_event_target_arn = "arn:aws:states:us-east-2:556611339911:stateMachine:menual-deo-steps-function"
input = jsonencode(
{
cluster_name = "oozou-devops-eks-cluster"
nodegroup_name = "oozou-devops-eks-sabarakata-nodegroup"
min = 0,
max = 1,
desired = 0
taint_key = "dedicated"
taint_value = "stop"
}
)
role_arn = "arn:aws:iam::556611339911:role/service-role/StepFunctions-menual-deo-steps-function-role-617c576c"
tags = {
"Workspace" = "xxx-yyy-zzz"
}
}
Name | Version |
---|---|
terraform | >= 1.0.0 |
aws | >= 4.00 |
Name | Version |
---|---|
aws | 4.23.0 |
No modules.
Name | Type |
---|---|
aws_cloudwatch_event_bus.this | resource |
aws_cloudwatch_event_rule.this | resource |
aws_cloudwatch_event_target.this | resource |
aws_cloudwatch_event_bus.this | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
bus_name | A unique name for your EventBridge Bus | string |
"default" |
no |
cloudwatch_event_rule_is_enabled | Whether the rule should be enabled. | bool |
true |
no |
cloudwatch_event_target | A map of objects with EventBridge Target definitions. | any |
{} |
no |
cloudwatch_event_target_arn | The Amazon Resource Name (ARN) associated of the target. | string |
n/a | yes |
cloudwatch_event_target_id | The unique target assignment ID. If missing, will generate a random, unique id. | string |
null |
no |
dead_letter_config_arn | (Optional) Parameters used when you are providing a dead letter config. Documented below. A maximum of 1 are allowed. | string |
null |
no |
environment | Environment Variable used as a prefix | string |
n/a | yes |
event_description | The description of the rule. | string |
"" |
no |
event_pattern | (Optional) The event pattern described a JSON object. At least one of schedule_expression or event_pattern is required. | string |
null |
no |
input | Valid JSON text passed to the target. Conflicts with input_path and input_transformer. | string |
null |
no |
input_path | (Optional) The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. Conflicts with input and input_transformer. | string |
null |
no |
input_transformer | Parameters used when you are providing a custom input to a target based on certain event data example: input_transformer = { input_paths = { severity="$.detail.severity", Finding_Type="$.detail.type" } input_template = ""You have a severity GuardDuty finding type <Finding_Type>"" } |
object({ |
null |
no |
name | Name of the ECS cluster to create | string |
n/a | yes |
prefix | The prefix name of customer to be displayed in AWS console and resource | string |
n/a | yes |
retry_policy | (Optional) Parameters used when you are providing retry policies. Documented below. A maximum of 1 are allowed. | object({ |
{ |
no |
role_arn | (Optional) The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. Required if ecs_target is used or target in arn is EC2 instance, Kinesis data stream, Step Functions state machine, or Event Bus in different account or region. | string |
"" |
no |
run_command_targets | (Optional) Parameters used when you are using the rule to invoke Amazon EC2 Run Command. Documented below. A maximum of 5 are allowed. | list(object({ |
[] |
no |
schedule_expression | (Optional) The scheduling expression. For example, cron(0 20 * * ? *) or rate(5 minutes) | string |
null |
no |
tags | Custom tags which can be passed on to the AWS resources. They should be key value pairs having distinct keys | map(any) |
{} |
no |
Name | Description |
---|---|
aws_cloudwatch_event_rule_arn | The Amazon Resource Name (ARN) of the rule. |
aws_cloudwatch_event_rule_id | The name of the rule |