Skip to content
This repository was archived by the owner on Jul 25, 2023. It is now read-only.

Commit f7f46b9

Browse files
committed
update docs and examples
1 parent aaba8d8 commit f7f46b9

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,20 @@ Terraform 0.12. Pin module version to `~> v1.0`. Submit pull-requests to `master
88
## Usage
99

1010
```hcl
11-
module "name" {
12-
...
11+
module "ecs-fargate-scheduled-task" {
12+
source = "umotif-public/ecs-fargate-scheduled-task/aws"
13+
version = "~> 1.0"
14+
15+
name_prefix = "test-scheduled-task"
16+
17+
ecs_cluster_arn = aws_ecs_cluster.main.arn
18+
19+
task_role_arn = var.task_role_arn
20+
execution_role_arn = var.execution_role_arn
21+
22+
event_target_task_definition_arn = var.event_target_task_definition_arn
23+
event_rule_schedule_expression = "rate(1 minute)"
24+
event_target_subnets = ["subnet-1","subnet-2"]
1325
}
1426
```
1527

examples/core/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module "ecs-task-definition" {
3737
task_host_port = "80"
3838
}
3939

40-
module "ecs-scheduled-task" {
40+
module "ecs-fargate-scheduled-task" {
4141
source = "../.."
4242

4343
name_prefix = "test-scheduled-task"

0 commit comments

Comments
 (0)