aws-postgresql
intel/aws-postgresql/intel
Intel Cloud Optimization Module - AWS RDS PostgreSQL
Intel® Optimized Cloud Modules for Terraform © Copyright 2025, Intel Corporation AWS RDS PostgreSQL module This module can be used to deploy an Intel optimized Amazon RDS PostgreSQL Server database instance. Instance selection (Intel Sapphire Rapids db.m7i.2xlarge) and PostgreSQL optimization are included by default in the code. The PostgreSQL Optimizations were based off Intel Xeon Tuning guides Performance Data AWS EC2 M7i Instances Enabled by 4th Gen Intel® Xeon® Scalable Processors Outpaced Older Instances in Transactional Database Performance Usage See examples folder for complete examples. By default, you will only have to pass three variables ``hcl db_password rds_identifier vpc_id ` variables.tf `hcl variable "db_password" { description = "Password for the master database user." ty
| Name | Type | Description | Default |
|---|---|---|---|
| db_password | string | Password for the master database user. | required |
| rds_identifier | string | Name of the RDS instance that will be created. | required |
| create_security_group | bool | Flag that allows for the creation of a security group that allows access to the | false |
| db_port | number | The port on which the DB accepts connections. | null |
| db_iops | number | The amount of provisioned IOPS. Setting this implies a storage_type of io1. | 10000 |
| egress_to_port | number | Ending egress port for the RDS security group. | 5432 |
| egress_cidr_blocks | list(string) | Egress CIDR block for the RDS security group. | [
"0.0.0.0/0"
] |
| db_parameter_group_name | string | Name for the RDS database parameter group. | "postgresql" |
| db_tags | map(string) | Map of tags to apply to the database instance. | null |
| db_max_allocated_storage | number | When configured, the upper limit to which Amazon RDS can automatically scale the | 10000 |
| db_performance_insights | bool | Flag that specifies whether Performance Insights are enabled. | false |
| db_domain | string | The ID of the Directory Service Active Directory domain to create the instance i | null |
| db_replicate_source_db | string | Specifies that this resource is a Replicate database, and to use this value as t | null |
| db_backup_retention_period | number | The days to retain backups for. Must be between 0 and 35. Must be greater than 0 | 7 |
| ingress_to_port | number | Ending ingress port for the RDS security group. | 5432 |
| db_engine_version | string | Database engine version for AWS database instance. | "14.17" |
| db_apply_immediately | bool | Flag that specifies whether any database modifications are applied immediately, | false |
| auto_minor_version_upgrades | bool | Flag that specifies if minor engine upgrades will be applied automatically to th | true |
| instance_class | string | Instance class that will be used by the RDS instance. | "db.m7i.2xlarge" |
| db_name | string | Name of the database that will be created on the RDS instance. If this is specif | null |
| multi_az | bool | Flag that specifies if the RDS instance is multi_az. | true |
| db_ca_cert_identifier | string | The identifier of the CA certificate for the DB instance. | null |
| … and 10 more inputs | |||
db_restore_time — The date and time to restore from.db_instance_id — RDS instance ID.db_hosted_zone_id — Hosted zone ID for the database instance.db_engine_version_actual — Running engine version of the database (full version number)db_encryption — Flag that indicates if storage encryption is enabled.db_security_group_ids — Security Group IDs that were associated with the database instance.db_delete_automated_backups — Flag that specifies if automated backups are deleted.db_source_dbi_resource_id — The resource ID of the source DB instance from which to restore.db_automated_backup_arn — The ARN of the automated backup from which to restore.db_status — Status of the database instance that was created.db_subnet_group — Name of the subnet group that is associated with the database instance.db_max_allocated_storage — Maximum storage allocation that is configured on the database instance.db_storage_type — Storage type that is configured on the database instance.db_backup_window — Configured backup window for the database instance.db_name — Name of the database that was created (if specified) during instance creation.db_iam_auth_enabled — Flag that specifies if iam authenticaiton is enabled on the databasedb_allocated_storage — Storage that was allocated to the instance when it configured.db_monitoring_interval — Monitoring interval configuration.db_performance_insights_kms_key_id — ARN of the KMS key that Performance Insights is utilizing (if enabled).db_username — Database instance master username.db_performance_insights — Flag that indiciates if Performance Insights is enabled.db_kms_key_id — KMS key that is configured on the database instance if storage encryption is enabled.db_arn — ARN of the database instance.db_maintenance_window — Maintainence window for the database instance.db_ca_cert_identifier — The identifier of the CA certificate for the DB instance.db_source_db_instance_id — The identifier of the source DB instance from which to restore.db_parameter_group — Parameter group that was createddb_custom_iam_profile — The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instancedb_iops — Database instance iops that was configured.db_port — Database instance port.