From 9f630240359adf8937064556f4b103f25a3146b4 Mon Sep 17 00:00:00 2001 From: Zachary Blasczyk Date: Fri, 28 Jul 2023 11:20:03 -0500 Subject: [PATCH] docs: Update Readme --- main.tf | 4 +-- modules/app_eks/iam-roles.tf | 2 +- modules/database/main.tf | 54 ++++++++++++++++++------------------ 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/main.tf b/main.tf index 350c95df..9e8c634c 100644 --- a/main.tf +++ b/main.tf @@ -73,8 +73,8 @@ locals { module "database" { source = "./modules/database" - namespace = var.namespace - kms_key_arn = local.kms_key_arn + namespace = var.namespace + kms_key_arn = local.kms_key_arn performance_insights_kms_key_arn = var.database_performance_insights_kms_key_arn_kms_key_arn database_name = var.database_name diff --git a/modules/app_eks/iam-roles.tf b/modules/app_eks/iam-roles.tf index 1083e1c7..a060e093 100644 --- a/modules/app_eks/iam-roles.tf +++ b/modules/app_eks/iam-roles.tf @@ -1,7 +1,7 @@ resource "aws_iam_role" "node" { name = "${var.namespace}-node" assume_role_policy = data.aws_iam_policy_document.node_assume.json - + // todo: refactor --> v1.16.3 inline_policy {} } diff --git a/modules/database/main.tf b/modules/database/main.tf index bdb97f2c..2f29fd46 100644 --- a/modules/database/main.tf +++ b/modules/database/main.tf @@ -98,32 +98,32 @@ module "aurora" { source = "terraform-aws-modules/rds-aurora/aws" version = "6.2.0" - allow_major_version_upgrade = true - allowed_cidr_blocks = var.allowed_cidr_blocks - apply_immediately = true - autoscaling_enabled = false - backup_retention_period = var.backup_retention_period - create_db_subnet_group = var.create_db_subnet_group - create_random_password = false - create_security_group = true - database_name = var.database_name - db_cluster_parameter_group_name = aws_rds_cluster_parameter_group.default.id - db_parameter_group_name = aws_db_parameter_group.default.id - db_subnet_group_name = var.db_subnet_group_name - deletion_protection = var.deletion_protection - enabled_cloudwatch_logs_exports = ["audit", "error", "general", "slowquery"] - engine = "aurora-mysql" - engine_version = var.engine_version - iam_database_authentication_enabled = false - iam_role_force_detach_policies = true - iam_role_name = "${var.namespace}-aurora-monitoring" - instance_class = var.instance_class - instances = { 1 = {} } - kms_key_id = var.kms_key_arn - master_password = local.master_password - master_username = var.master_username - monitoring_interval = 15 - name = var.namespace + allow_major_version_upgrade = true + allowed_cidr_blocks = var.allowed_cidr_blocks + apply_immediately = true + autoscaling_enabled = false + backup_retention_period = var.backup_retention_period + create_db_subnet_group = var.create_db_subnet_group + create_random_password = false + create_security_group = true + database_name = var.database_name + db_cluster_parameter_group_name = aws_rds_cluster_parameter_group.default.id + db_parameter_group_name = aws_db_parameter_group.default.id + db_subnet_group_name = var.db_subnet_group_name + deletion_protection = var.deletion_protection + enabled_cloudwatch_logs_exports = ["audit", "error", "general", "slowquery"] + engine = "aurora-mysql" + engine_version = var.engine_version + iam_database_authentication_enabled = false + iam_role_force_detach_policies = true + iam_role_name = "${var.namespace}-aurora-monitoring" + instance_class = var.instance_class + instances = { 1 = {} } + kms_key_id = var.kms_key_arn + master_password = local.master_password + master_username = var.master_username + monitoring_interval = 15 + name = var.namespace //////////////////////////////////////////////////////////////////////////////////////// // !!! note on performance insights !!! // AWS offers 7 days of performance insights free. keeping them after this period @@ -141,5 +141,5 @@ module "aurora" { subnets = var.subnets vpc_id = var.vpc_id - + }