Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (88 sloc) 2.59 KB
provider "aws" {
region = var.region
}
module "vpc" {
source = "git::https://github.com/cloudposse/terraform-aws-vpc.git?ref=tags/0.7.0"
namespace = var.namespace
stage = var.stage
name = var.name
cidr_block = "172.16.0.0/16"
}
module "subnets" {
source = "git::https://github.com/cloudposse/terraform-aws-dynamic-subnets.git?ref=tags/0.16.0"
availability_zones = var.availability_zones
namespace = var.namespace
stage = var.stage
name = var.name
vpc_id = module.vpc.vpc_id
igw_id = module.vpc.igw_id
cidr_block = module.vpc.vpc_cidr_block
nat_gateway_enabled = false
nat_instance_enabled = false
}
module "rds_cluster" {
source = "../../"
namespace = var.namespace
stage = var.stage
name = var.name
engine = var.engine
engine_mode = var.engine_mode
cluster_family = var.cluster_family
cluster_size = var.cluster_size
admin_user = var.admin_user
admin_password = var.admin_password
db_name = var.db_name
instance_type = var.instance_type
vpc_id = module.vpc.vpc_id
subnets = module.subnets.private_subnet_ids
security_groups = [module.vpc.vpc_default_security_group_id]
deletion_protection = var.deletion_protection
autoscaling_enabled = var.autoscaling_enabled
cluster_parameters = [
{
name = "character_set_client"
value = "utf8"
apply_method = "pending-reboot"
},
{
name = "character_set_connection"
value = "utf8"
apply_method = "pending-reboot"
},
{
name = "character_set_database"
value = "utf8"
apply_method = "pending-reboot"
},
{
name = "character_set_results"
value = "utf8"
apply_method = "pending-reboot"
},
{
name = "character_set_server"
value = "utf8"
apply_method = "pending-reboot"
},
{
name = "collation_connection"
value = "utf8_bin"
apply_method = "pending-reboot"
},
{
name = "collation_server"
value = "utf8_bin"
apply_method = "pending-reboot"
},
{
name = "lower_case_table_names"
value = "1"
apply_method = "pending-reboot"
},
{
name = "skip-character-set-client-handshake"
value = "1"
apply_method = "pending-reboot"
}
]
}
You can’t perform that action at this time.