© Copyright 2024, Intel Corporation
Configuration in this directory creates an Amazon RDS instance parameter group for Postgresql. This module is leveraged in a pre-existing Amazon RDS Postgresql module. This module exposes the Optimizations by Intel for Postgresql.
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-postgresql-parameter-group" {
source = "intel/terraform-intel-aws-postgresql-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" "example" {
identifier = "my-postgresql-db"
engine = "postgres"
engine_version = "14.7"
instance_class = "db.m5i.large"
allocated_storage = 20
storage_type = "gp2"
publicly_accessible = false
db_subnet_group_name = aws_db_subnet_group.example.name
vpc_security_group_ids = [aws_security_group.example.id]
name = "testpostgresql"
username = "myusername"
password = "var.db_password"
parameter_group_name = module.aws-postgresql-parameter-group.db_parameter_group_name
}
Name | Version |
---|---|
terraform | >=1.3.0 |
aws | ~> 4.36.0 |
random | ~>3.4.3 |
Name | Version |
---|---|
aws | ~> 4.36.0 |
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 |