Skip to content

Latest commit

History

History
112 lines (95 loc) 路 11.8 KB

File metadata and controls

112 lines (95 loc) 路 11.8 KB

Aurora Global Cluster Example

Configuration in this directory creates a PostgreSQL Aurora global cluster.

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which cost money. Run terraform destroy when you don't need these resources.

Requirements

Name Version
terraform >= 1.0
aws >= 5.42
random >= 2.2

Providers

Name Version
aws >= 5.42
aws.secondary >= 5.42
random >= 2.2

Modules

Name Source Version
aurora_primary ../../ n/a
aurora_secondary ../../ n/a
primary_vpc terraform-aws-modules/vpc/aws ~> 5.0
secondary_vpc terraform-aws-modules/vpc/aws ~> 5.0

Resources

Name Type
aws_kms_key.primary resource
aws_kms_key.secondary resource
aws_rds_global_cluster.this resource
random_password.master resource
aws_availability_zones.primary data source
aws_availability_zones.secondary data source
aws_caller_identity.current data source
aws_iam_policy_document.rds data source

Inputs

No inputs.

Outputs

Name Description
primary_additional_cluster_endpoints A map of additional cluster endpoints and their attributes
primary_cluster_arn Amazon Resource Name (ARN) of cluster
primary_cluster_database_name Name for an automatically created database on cluster creation
primary_cluster_endpoint Writer endpoint for the cluster
primary_cluster_engine_version_actual The running version of the cluster database
primary_cluster_hosted_zone_id The Route53 Hosted Zone ID of the endpoint
primary_cluster_id The RDS Cluster Identifier
primary_cluster_instances A map of cluster instances and their attributes
primary_cluster_master_user_secret The generated database master user secret when manage_master_user_password is set to true
primary_cluster_members List of RDS Instances that are a part of this cluster
primary_cluster_port The database port
primary_cluster_reader_endpoint A read-only endpoint for the cluster, automatically load-balanced across replicas
primary_cluster_resource_id The RDS Cluster Resource ID
primary_cluster_role_associations A map of IAM roles associated with the cluster and their attributes
primary_db_cluster_cloudwatch_log_groups Map of CloudWatch log groups created and their attributes
primary_db_cluster_parameter_group_arn The ARN of the DB cluster parameter group created
primary_db_cluster_parameter_group_id The ID of the DB cluster parameter group created
primary_db_parameter_group_arn The ARN of the DB parameter group created
primary_db_parameter_group_id The ID of the DB parameter group created
primary_db_subnet_group_name The db subnet group name
primary_enhanced_monitoring_iam_role_arn The Amazon Resource Name (ARN) specifying the enhanced monitoring role
primary_enhanced_monitoring_iam_role_name The name of the enhanced monitoring role
primary_enhanced_monitoring_iam_role_unique_id Stable and unique string identifying the enhanced monitoring role
primary_security_group_id The security group ID of the cluster
secondary_additional_cluster_endpoints A map of additional cluster endpoints and their attributes
secondary_cluster_arn Amazon Resource Name (ARN) of cluster
secondary_cluster_database_name Name for an automatically created database on cluster creation
secondary_cluster_endpoint Writer endpoint for the cluster
secondary_cluster_engine_version_actual The running version of the cluster database
secondary_cluster_hosted_zone_id The Route53 Hosted Zone ID of the endpoint
secondary_cluster_id The RDS Cluster Identifier
secondary_cluster_instances A map of cluster instances and their attributes
secondary_cluster_master_user_secret The generated database master user secret when manage_master_user_password is set to true
secondary_cluster_members List of RDS Instances that are a part of this cluster
secondary_cluster_port The database port
secondary_cluster_reader_endpoint A read-only endpoint for the cluster, automatically load-balanced across replicas
secondary_cluster_resource_id The RDS Cluster Resource ID
secondary_cluster_role_associations A map of IAM roles associated with the cluster and their attributes
secondary_db_cluster_cloudwatch_log_groups Map of CloudWatch log groups created and their attributes
secondary_db_cluster_parameter_group_arn The ARN of the DB cluster parameter group created
secondary_db_cluster_parameter_group_id The ID of the DB cluster parameter group created
secondary_db_parameter_group_arn The ARN of the DB parameter group created
secondary_db_parameter_group_id The ID of the DB parameter group created
secondary_db_subnet_group_name The db subnet group name
secondary_enhanced_monitoring_iam_role_arn The Amazon Resource Name (ARN) specifying the enhanced monitoring role
secondary_enhanced_monitoring_iam_role_name The name of the enhanced monitoring role
secondary_enhanced_monitoring_iam_role_unique_id Stable and unique string identifying the enhanced monitoring role
secondary_security_group_id The security group ID of the cluster