SQL Server edition identifiers
RDS SQL Server supports four engine identifiers. Choose the one that matches your license and workload requirements:Configuration
main.tf
MSSQL-specific configuration
Engine version format
SQL Server engine versions use the format"15.00" (SQL Server 2019), not a single integer. The corresponding family value follows the pattern "sqlserver-ex-15.0" and major_engine_version is "15.00".
License model
Thelicense_model variable controls how you provide SQL Server licenses:
Timezone
Thetimezone variable sets the SQL Server instance timezone and can only be set at creation time. The value must be a valid Windows timezone identifier such as "GMT Standard Time", "Eastern Standard Time", or "UTC". Changing this after creation requires rebuilding the instance.
Character set
character_set_name = "Latin1_General_CI_AS" sets the SQL Server collation. CI means case-insensitive, AS means accent-sensitive. This is the default collation for most SQL Server installations. Like the timezone, the collation can only be set at creation time.
Parameter group
SQL Server Express Edition does not support custom DB parameter groups. The example setscreate_db_parameter_group = false to skip parameter group creation.
Windows Authentication (Active Directory)
The example joins the RDS instance to an AWS Managed Microsoft AD directory using:domain— the Directory Service directory IDdomain_iam_role_name— an IAM role with theAmazonRDSDirectoryServiceAccessmanaged policy attached
aws_directory_service_directory resource provisions a Standard edition Managed AD at corp.demo.com.
CloudWatch log exports
For SQL Server, theerror log type exports SQL Server error log entries. Other available log types include agent (SQL Server Agent) and trace.