© Copyright 2024, Intel Corporation
Configuration in this directory creates an Amazon RDS instance parameter group for MySQL. This module is leveraged in a pre-existing Amazon RDS MySQL module. This module exposes the Optimizations by Intel for MySQL.
See example folder for creating the AWS RDS Paremeter group.
In order to utilize add the following lines to your current module above the rds_resource group.
main.tf
module "aws-mysql-parameter-group" {
source = "intel/terraform-intel-aws-mysql-parameter-group/intel"
}
Within the main.tf aws_db_instance resource block, edit the parameter_group_name to use the "module.aws-mysql-parameter-group.db_parameter_group_name"
resource "aws_db_instance" "mysql" {
allocated_storage = 10
db_name = "testmysqlrds"
engine = "mysql"
engine_version = "8.0"
instance_class = "db.m6i.large"
username = "admin25"
password = "var.db_password"
parameter_group_name = module.aws-mysql-parameter-group.db_parameter_group_name
skip_final_snapshot = true
}
Name | Version |
---|---|
terraform | >=1.3.0 |
aws | >= 5.31 |
random | >= 3.4.3 |
Name | Version |
---|---|
aws | >= 5.31 |
random | >= 3.4.3 |
No modules.
Name | Type |
---|---|
aws_db_parameter_group.rds | resource |
random_id.rid | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
db_engine | Database engine version for AWS database instance. | string |
"mysql" |
no |
db_parameter_group_family | Family identifier for the RDS database parameter group. | string |
"mysql8.0" |
no |
db_parameter_group_name | Name for the RDS database parameter group. | string |
"mysql" |
no |
db_parameters | Intel Cloud optimizations for Xeon processors | object({ |
{ |
no |
db_user_parameters | "Customer provided db parameters. These should adhere to a similar structure as the above map. db_user_parameters = { db_param_user = { "apply_method" = "immediate" "value" = "1" } other_db_param = { apply_method = "immediate" value = "3.50" } |
map(any) |
{} |
no |
Name | Description |
---|---|
db_parameter_group_name | Parameter group that was created |