Skip to main content
This example provisions a production-ready Oracle Enterprise Edition 19c RDS instance with bring-your-own-license (BYOL) licensing, character set configuration, and cross-region automated backup replication using a KMS key.

Configuration

main.tf

Oracle-specific configuration

Engine identifiers

RDS Oracle supports two engine identifiers: The family value follows the format "oracle-ee-19" or "oracle-se2-19", and major_engine_version is the version number string "19".

License model

Oracle requires an explicit license_model:
  • "bring-your-own-license" — you supply existing Oracle licenses. Required for Enterprise Edition.
  • "license-included" — the Oracle license is included in the instance price. Only available for Standard Edition 2.

Database name constraints

The Oracle db_name (SID) must be capitalized and 8 characters or fewer. If you specify a lowercase name, Terraform will detect drift after creation because RDS stores it in uppercase, causing repeated plan/apply cycles. Use "ORACLE" not "oracle".

Character sets (immutable)

Both character_set_name and nchar_character_set_name are immutable after creation. Changing either value requires destroying and recreating the RDS instance. Choose carefully before first apply.
The example uses: For a full list of supported character sets, see the Oracle Character Sets documentation.

CloudWatch log exports

Oracle supports the following log export types:

Outputs