ecs-fargate-scheduled-task

cn-terraform/ecs-fargate-scheduled-task/aws

Terraform Module HCL AWS

AWS ECS Fargate Schedule Task Terraform Module

Install
module "ecs-fargate-scheduled-task" {
source = "cn-terraform/ecs-fargate-scheduled-task/aws"
version = "2.0.0"
}
⭐ Source on GitHub 📦 Registry page
README

AWS ECS Fargate Scheduled Task Terraform Module # This Terraform module deploys an AWS ECS Fargate scheduled task service. ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate-scheduled-task/actions?query=workflow%3Aterraform) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate-scheduled-task) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate-scheduled-task) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate-scheduled-task) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate-scheduled-task) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate-scheduled-task) Usage Check versions for this module on: Github Releases: Terraform Module Registry: Other modules that you may need to use this module The Networking module: Github Releases

Inputs (32)
NameTypeDescriptionDefault
name_prefixstringName prefix for resources on AWS. required
event_target_ecs_target_task_definition_arnstring(Required) The ARN of the task definition to use if the event target is an Amazo required
event_target_ecs_cluster_arnstringThe ECS Cluster where the scheduled task will run. required
event_target_ecs_target_subnetslist(string)(Required) The subnets associated with the task or service. required
event_rule_namestringThe name of the rule. If omitted, Terraform will assign a random, unique name. C required
ecs_task_role_arnstring(Optional) The task definition role. The Amazon Resource Name (ARN) of the IAM rnull
additional_tagsmap(string)(Optional) Additional tags to add to resources. These will be merged with the de{}
event_rule_event_patternstring(Optional) The event pattern described a JSON object. At least one of schedule_enull
event_target_inputstring(Optional) Valid JSON text passed to the target. Conflicts with event_target_inpnull
event_target_input_transformerobject({ input_template = (Optional) Parameters used when you are providing a custom event_target_input tonull
event_target_ecs_target_security_groupslist(string)(Optional) The security groups associated with the task or service. If you do nonull
event_target_ecs_target_enable_ecs_managed_tagsbool(Optional) Specifies whether to enable Amazon ECS managed tags for the task.false
event_target_ecs_target_enable_execute_commandbool(Optional) Whether or not to enable the execute command functionality for the cofalse
event_target_ecs_target_task_countnumber(Optional) The number of tasks to create based on the TaskDefinition. Defaults t1
event_target_ecs_target_additional_tagsmap(string)(Optional) Additional tags to add to the ECS target. These will be merged with t{}
event_rule_schedule_expressionstring(Optional) The scheduling expression. For example, cron(0 20 * * ? *) or rate(5 null
event_rule_statestring(Optional) State of the rule. Valid values are DISABLED, ENABLED, and ENABLED_WI"ENABLED"
event_target_input_pathstring(Optional) The value of the JSONPath that is used for extracting part of the matnull
event_target_ecs_target_groupstring(Optional) Specifies an ECS task group for the task. The maximum length is 255 cnull
event_target_ecs_target_platform_versionstring(Optional) Specifies the platform version for the task. Specify only the numeric"LATEST"
event_rule_descriptionstring(Optional) The description of the rule.null
event_rule_role_arnstring(Optional) The Amazon Resource Name (ARN) associated with the role that is used null
event_target_force_destroybool(Optional) Used to delete managed rules created by AWS. Defaults to false.false
event_target_target_idstring(Optional) The unique target assignment ID. If missing, will generate a random, null
permissions_boundarystring(Optional) The ARN of the policy that is used to set the permissions boundary fonull
Outputs (13)
scheduled_task_cw_event_role_create_date — The creation date of the IAM role.
scheduled_task_cw_event_role_description — The description of the role.
cloudwatch_event_rule — Values from the created CloudWatch Event Rule.
cloudwatch_event_target — Values from the created CloudWatch Event Target.
cloudwatch_event_role — Values from the created CloudWatch Event Role. Will be null if using a custom role ARN.
scheduled_task_cw_event_role_arn — The Amazon Resource Name (ARN) specifying the role.
scheduled_task_cw_event_role_id — The name of the role.
scheduled_task_cw_event_role_name — The name of the role.
scheduled_task_cw_event_role_unique_id — The stable and unique string identifying the role.
aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_id — The role policy ID, in the form of role_name:role_policy_name.
aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_name — The name of the policy.
aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_policy — The policy document attached to the role.
aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_role — The name of the role associated with the policy.
Resources (4)
aws_cloudwatch_event_ruleaws_cloudwatch_event_targetaws_iam_roleaws_iam_role_policy
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AWS
★ Stars44
Forks27
Total downloads595.6k
Inputs32
Outputs13
Resources4
Examples1
LicenseApache-2.0
Namespacecn-terraform
Updated