diff --git a/terraform/032-db-backup/main.tf b/terraform/032-db-backup/main.tf index fd68d90..8c2bff9 100644 --- a/terraform/032-db-backup/main.tf +++ b/terraform/032-db-backup/main.tf @@ -85,17 +85,13 @@ resource "aws_iam_user_policy" "backup" { */ locals { task_def_backup = templatefile("${path.module}/task-definition.json", { - app_env = var.app_env - app_name = var.app_name aws_region = local.aws_region cloudwatch_log_group_name = var.cloudwatch_log_group_name aws_access_key = aws_iam_access_key.backup.id aws_secret_key = aws_iam_access_key.backup.secret cpu = var.cpu - cron_schedule = var.cron_schedule db_names = join(" ", var.db_names) docker_image = var.docker_image - idp_name = var.idp_name mysql_host = var.mysql_host mysql_pass = var.mysql_pass mysql_user = var.mysql_user diff --git a/terraform/032-db-backup/outputs.tf b/terraform/032-db-backup/outputs.tf index 56014b0..9561872 100644 --- a/terraform/032-db-backup/outputs.tf +++ b/terraform/032-db-backup/outputs.tf @@ -9,4 +9,3 @@ output "s3_bucket_name" { output "s3_bucket_arn" { value = aws_s3_bucket.backup.arn } - diff --git a/terraform/032-db-backup/task-definition.json b/terraform/032-db-backup/task-definition.json index 91af99e..5ec00ba 100644 --- a/terraform/032-db-backup/task-definition.json +++ b/terraform/032-db-backup/task-definition.json @@ -15,14 +15,6 @@ "ulimits": null, "dockerSecurityOptions": null, "environment": [ - { - "name": "APP_ENV", - "value": "${app_env}" - }, - { - "name": "APP_NAME", - "value": "${app_name}" - }, { "name": "AWS_ACCESS_KEY", "value": "${aws_access_key}" @@ -31,18 +23,10 @@ "name": "AWS_SECRET_KEY", "value": "${aws_secret_key}" }, - { - "name": "CRON_SCHEDULE", - "value": "${cron_schedule}" - }, { "name": "DB_NAMES", "value": "${db_names}" }, - { - "name": "IDP_NAME", - "value": "${idp_name}" - }, { "name": "MODE", "value": "${service_mode}" diff --git a/terraform/032-db-backup/vars.tf b/terraform/032-db-backup/vars.tf index 8ea3c5a..5f62eb5 100644 --- a/terraform/032-db-backup/vars.tf +++ b/terraform/032-db-backup/vars.tf @@ -84,4 +84,3 @@ variable "service_mode" { variable "vpc_id" { type = string } -