-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature | data-science data-lake ref arch v1 + https://north.cloud ro…
…les added. (#646) * Updating users, build.env and sso policy * data-science data-lake reference architecture * Updating data-science/aurora-mysql layer to integrate with secrets manager * Adding data-science/secrets-manager layer to be used in the database-mysql layer and others * Remove not necessary data-science/database-aurora-mysql export to s3 sub-layer * Adding ref arch data-science/datalake-demo layer * updating dms tf module source * data-science/datalake-demo minor updates to dms module * Adding data-lake readme.md * renaming aurora mysql layer to reflect it's not provisioned * data-science/datalake-demo updating README.md * data-science/data-lake-demo layer sufix -- added since its not provisioned. * https://north.cloud co tool roles integration * data-science/glob/base-identities layer replaced by an empty placeholder. * removing metal ec2 type in sso devops policy * fixing conflict at devops policy * Adding data-scinece mysql layer to infracost
- Loading branch information
1 parent
efe6833
commit 2d57336
Showing
35 changed files
with
1,535 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
77 changes: 77 additions & 0 deletions
77
data-science/us-east-1/databases-aurora-mysql--/cluster_demoapps.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# | ||
# NOTE: Before deploying make sure the required secret is created via apps-devstg/us-east-1/secrets-manager layer | ||
# | ||
|
||
# | ||
# DB Administrator secret | ||
# | ||
data "aws_secretsmanager_secret_version" "administrator" { | ||
secret_id = data.terraform_remote_state.secrets.outputs.secret_ids["/aurora-mysql/administrator"] | ||
} | ||
|
||
module "demoapps" { | ||
source = "github.com/binbashar/terraform-aws-rds-aurora.git?ref=v7.2.2" | ||
|
||
# General settings | ||
name = "${var.project}-${var.environment}-binbash-aurora-mysql" | ||
engine = "aurora-mysql" | ||
engine_mode = "provisioned" | ||
engine_version = "5.7" | ||
|
||
# Initial database and credentials | ||
database_name = "demoapps" | ||
master_username = "admin" | ||
master_password = jsondecode(data.aws_secretsmanager_secret_version.administrator.secret_string)["password"] | ||
create_random_password = false | ||
|
||
# VPC and Subnets | ||
vpc_id = data.terraform_remote_state.vpc.outputs.vpc_id | ||
subnets = data.terraform_remote_state.vpc.outputs.private_subnets | ||
|
||
# Instance type and desired instances | ||
instance_class = "db.t3.small" | ||
instances = { | ||
one = {} | ||
} | ||
|
||
|
||
# Autoscaling settings | ||
autoscaling_enabled = false | ||
# autoscaling_min_capacity = 1 | ||
# autoscaling_max_capacity = 3 | ||
# autoscaling_target_cpu = 85 | ||
# autoscaling_target_connections = 200 | ||
|
||
# Storage encrypted as default | ||
storage_encrypted = true | ||
|
||
# Determines whether or not any DB modifications are applied immediately, or during the maintenance window | ||
# Only 'true' in test environments | ||
apply_immediately = true | ||
|
||
# Automatic backup settings | ||
backup_retention_period = 1 | ||
preferred_backup_window = "14:00-15:00" | ||
|
||
# This avoid a snapshot before destroy the cluster | ||
skip_final_snapshot = true | ||
|
||
# Monitoring settings | ||
# enabled_cloudwatch_logs_exports = ["audit", "error", "general", "slowquery"] | ||
|
||
# Database parameters: you can specify your own if you must | ||
# db_parameter_group_name = aws_db_parameter_group.aurora_db_57_parameter_group.id | ||
# db_cluster_parameter_group_name = aws_rds_cluster_parameter_group.aurora_57_cluster_parameter_group.id | ||
|
||
# If true, must add policy to iam auth (user or role) | ||
iam_database_authentication_enabled = false | ||
|
||
# Security group settings | ||
create_security_group = true | ||
allowed_cidr_blocks = [ | ||
"0.0.0.0/0", | ||
data.terraform_remote_state.shared_vpc.outputs.vpc_cidr_block | ||
] | ||
|
||
tags = local.tags | ||
} |
Oops, something went wrong.