Architecture of the Aurora Global Cluster Example
masterThe global cluster example is composed of the following components:
Modules
- aurora_primary: The main Aurora cluster module (pointing to the root module).
- aurora_secondary: The secondary Aurora cluster module (pointing to the root module).
- primary_vpc: VPC module from
terraform-aws-modules/vpc/aws(~> 6.0). - secondary_vpc: VPC module from
terraform-aws-modules/vpc/aws(~> 6.0).
Resources and Data Sources
- Global Cluster:
aws_rds_global_cluster.thislinks the primary and secondary clusters. - Encryption:
aws_kms_key.primaryandaws_kms_key.secondaryprovide KMS keys for each region. - Security:
random_password.mastergenerates the master password. - Network/Identity: Uses
aws_availability_zonesfor both regions andaws_caller_identityfor account context. - IAM:
aws_iam_policy_document.rdsdefines policies for RDS access.