Skip to content

Commit

Permalink
remove moved blocks for scheduled task resources
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Sep 10, 2024
1 parent b1659e6 commit d2547be
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 60 deletions.
20 changes: 0 additions & 20 deletions terraform/032-db-backup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,6 @@ module "backup_task" {
}
}

moved {
from = aws_iam_role.ecs_events
to = module.backup_task.aws_iam_role.this
}

moved {
from = aws_iam_role_policy.ecs_events_run_task_with_any_role
to = module.backup_task.aws_iam_role_policy.this
}

/*
* Create cron task definition
*/
Expand All @@ -149,16 +139,6 @@ locals {
event_schedule = var.cron_schedule != "" ? var.cron_schedule : var.event_schedule
}

moved {
from = aws_cloudwatch_event_rule.event_rule
to = module.backup_task.aws_cloudwatch_event_rule.this
}

moved {
from = aws_cloudwatch_event_target.backup_event_target
to = module.backup_task.aws_cloudwatch_event_target.this
}

/*
* AWS backup
*/
Expand Down
20 changes: 0 additions & 20 deletions terraform/040-id-broker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -240,26 +240,6 @@ module "cron_task" {
}
}

moved {
from = aws_iam_role.ecs_events
to = module.cron_task.aws_iam_role.this
}

moved {
from = aws_iam_role_policy.ecs_events_run_task_with_any_role
to = module.cron_task.aws_iam_role_policy.this
}

moved {
from = aws_cloudwatch_event_rule.event_rule
to = module.cron_task.aws_cloudwatch_event_rule.this
}

moved {
from = aws_cloudwatch_event_target.event_target
to = module.cron_task.aws_cloudwatch_event_target.this
}

/*
* Create Cloudflare DNS record(s)
*/
Expand Down
20 changes: 0 additions & 20 deletions terraform/070-id-sync/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,6 @@ module "cron_task" {
}
}

moved {
from = aws_iam_role.ecs_events
to = module.cron_task.aws_iam_role.this
}

moved {
from = aws_iam_role_policy.ecs_events_run_task_with_any_role
to = module.cron_task.aws_iam_role_policy.this
}

/*
* Create cron task definition
*/
Expand All @@ -83,16 +73,6 @@ resource "aws_ecs_task_definition" "cron_td" {
task_role_arn = one(module.ecs_role[*].role_arn)
}

moved {
from = aws_cloudwatch_event_rule.event_rule
to = module.cron_task.aws_cloudwatch_event_rule.this
}

moved {
from = aws_cloudwatch_event_target.id_sync_event_target
to = module.cron_task.aws_cloudwatch_event_target.this
}

/*
* Create ECS role
*/
Expand Down

0 comments on commit d2547be

Please sign in to comment.