diff --git a/terraform/032-db-backup/main.tf b/terraform/032-db-backup/main.tf index 2a208c1..9e066d4 100644 --- a/terraform/032-db-backup/main.tf +++ b/terraform/032-db-backup/main.tf @@ -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 */ @@ -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 */ diff --git a/terraform/040-id-broker/main.tf b/terraform/040-id-broker/main.tf index d3172d5..70ca206 100644 --- a/terraform/040-id-broker/main.tf +++ b/terraform/040-id-broker/main.tf @@ -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) */ diff --git a/terraform/070-id-sync/main.tf b/terraform/070-id-sync/main.tf index 0a9c010..f06bea9 100644 --- a/terraform/070-id-sync/main.tf +++ b/terraform/070-id-sync/main.tf @@ -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 */ @@ -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 */