Skip to content

Instantly share code, notes, and snippets.

@jamengual
Created September 18, 2019 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamengual/3b44ec91777090dea73c3957b87aae9f to your computer and use it in GitHub Desktop.
Save jamengual/3b44ec91777090dea73c3957b87aae9f to your computer and use it in GitHub Desktop.
Terraform clobal databases
# module.db_secondary_cluster.aws_rds_cluster.default[0] will be updated in-place
~ resource "aws_rds_cluster" "default" {
apply_immediately = true
arn = "arn:aws:rds:us-west-2:1111111111111111:cluster:example-stage-dbsecondary"
availability_zones = [
"us-west-2a",
"us-west-2b",
"us-west-2c",
]
backtrack_window = 0
backup_retention_period = 5
cluster_identifier = "example-stage-dbsecondary"
cluster_members = [
"example-stage-dbsecondary-1",
"example-stage-dbsecondary-2",
]
cluster_resource_id = "cluster-AADFASDFLU42PQYAG2EVSIE2U"
copy_tags_to_snapshot = false
database_name = "insight_dm"
db_cluster_parameter_group_name = "example-stage-dbsecondary"
db_subnet_group_name = "example-stage-dbsecondary"
deletion_protection = false
enabled_cloudwatch_logs_exports = []
endpoint = "example-stage-dbsecondary.cluster-cosranvrcqpl.us-west-2.rds.amazonaws.com"
engine = "aurora"
engine_mode = "global"
engine_version = "5.6.10a"
final_snapshot_identifier = "example-stage-dbsecondary"
global_cluster_identifier = "db-global-cluster"
hosted_zone_id = "Z1PVIF0B656C1W"
iam_database_authentication_enabled = true
iam_roles = []
id = "example-stage-dbsecondary"
kms_key_id = "arn:aws:kms:us-west-2:1111111111111111:key/1111bce-523f-4fe6-af28-1c1e11f111f"
master_username = "admin"
port = 3306
preferred_backup_window = "07:00-09:00"
preferred_maintenance_window = "wed:03:00-wed:04:00"
reader_endpoint = "example-stage-dbsecondary.cluster-ro-cosranvrcqpl.us-west-2.rds.amazonaws.com"
- replication_source_identifier = "arn:aws:rds:us-east-2:1111111111111111:cluster:main-stage-db" -> null
skip_final_snapshot = true
source_region = "us-east-2"
storage_encrypted = true
tags = {
"Name" = "example-stage-db-econdary"
"Namespace" = "example"
"Stage" = "stage"
}
vpc_security_group_ids = [
"sg-0d580c50f111111",
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment