Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconaurora-global-cluster
file-type-iconaurora
file-type-iconlambda-rds-snapshot
file-type-iconrds-mariadb
file-type-iconrds-mysql
file-type-iconrds-postgres
file-type-iconrds-sqlserver
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconrds-with-replicas
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.adoc

Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconaurora-global-cluster
file-type-iconaurora
file-type-iconlambda-rds-snapshot
file-type-iconrds-mariadb
file-type-iconrds-mysql
file-type-iconrds-postgres
file-type-iconrds-sqlserver
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconrds-with-replicas
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.adoc
RDS

RDS

Terraform code and scripts for deploying data-storage resources (e.g. databases, cache) in AWS

Code Preview

Preview the Code

mobile file icon

README.md

down

SQL Server RDS Example

This folder contains an example of how to use the RDS module to create an Amazon Relational Database Service (RDS) cluster that can run Microsoft SQL Server. The cluster is managed by AWS and automatically handles leader election, replication, failover, backups, patching, and encryption.

The cluster is pre-configured to use the sqlserver-ex database engine.

How do you run this example?

To run this example, you need to:

  1. Install Terraform.
  2. Open up vars.tf and set secrets at the top of the file as environment variables and fill in any other variables in the file that don't have defaults.
  3. terraform init.
  4. terraform plan.
  5. If the plan looks good, run terraform apply.

When the templates are applied, Terraform will output the IP address of the cluster endpoint (which points to the master) and the instance endpoints (which point to the master and all replicas).

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?