Skip to content

Commit

Permalink
docs: Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed Jul 28, 2023
1 parent 59e0347 commit 9f63024
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/app_eks/iam-roles.tf
Original file line number Diff line number Diff line change
@@ -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 {}
}
Expand Down
54 changes: 27 additions & 27 deletions modules/database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -141,5 +141,5 @@ module "aurora" {
subnets = var.subnets
vpc_id = var.vpc_id


}

0 comments on commit 9f63024

Please sign in to comment.