Commit f7f5cf95 authored by Chris Merrett's avatar Chris Merrett

Fix some search and replace typos

parent a6992071
Pipeline #1467 passed with stage
in 6 seconds
...@@ -23,9 +23,9 @@ Input Variables ...@@ -23,9 +23,9 @@ Input Variables
Outputs Outputs
------- -------
- `aurora_cluster_id` - The ID of the Aurora cluster. - `cluster_id` - The ID of the Aurora cluster.
- `aurora_instance_id` - The ID(s) of all Aurora instances. - `instance_id` - The ID(s) of all Aurora instances.
- `aurora_instance_address` - The private IPv4 addresses of all Aurora instances. - `instance_address` - The private IPv4 addresses of all Aurora instances.
- `subnet_group_id` - The ID of the subnet group. - `subnet_group_id` - The ID of the subnet group.
Usage Usage
......
...@@ -76,7 +76,7 @@ resource "aws_db_subnet_group" "default" { ...@@ -76,7 +76,7 @@ resource "aws_db_subnet_group" "default" {
############################################################################################################# #############################################################################################################
# Aurora Instances # Aurora Instances
############################################################################################################# #############################################################################################################
resource "aws_cluster" "default" { resource "aws_rds_cluster" "default" {
cluster_identifier = "${var.cluster_name}" cluster_identifier = "${var.cluster_name}"
master_username = "${var.username}" master_username = "${var.username}"
...@@ -91,9 +91,9 @@ resource "aws_cluster" "default" { ...@@ -91,9 +91,9 @@ resource "aws_cluster" "default" {
preferred_maintenance_window = "${var.maintenance_window}" preferred_maintenance_window = "${var.maintenance_window}"
} }
resource "aws_cluster_instance" "default" { resource "aws_rds_cluster_instance" "default" {
identifier = "${var.cluster_name}" identifier = "${aws_rds_cluster.default.cluster_identifier}-${count.index}"
cluster_identifier = "${var.cluster_name}-${count.index}" cluster_identifier = "${aws_rds_cluster.default.cluster_identifier}"
instance_class = "$(var.instance_class)" instance_class = "$(var.instance_class)"
db_subnet_group_name = "${aws_db_subnet_group.default.name}" db_subnet_group_name = "${aws_db_subnet_group.default.name}"
...@@ -109,10 +109,10 @@ resource "aws_cluster_instance" "default" { ...@@ -109,10 +109,10 @@ resource "aws_cluster_instance" "default" {
resource "aws_route53_record" "private_aurora" { resource "aws_route53_record" "private_aurora" {
zone_id = "${var.route53_zone}" zone_id = "${var.route53_zone}"
name = "aurora${count.index}.${var.cluster_name}.aws" name = "aurora${count.index}.${aws_rds_cluster.default.cluster_identifier}.aws"
type = "CNAME" type = "CNAME"
ttl = "60" ttl = "60"
records = ["${aws_cluster_instance.default.address}"] records = ["${aws_rds_cluster_instance.default.address}"]
count = "${length(split(",", "var.route53_zone")) * var.instance_count}" count = "${length(split(",", "var.route53_zone")) * var.instance_count}"
} }
...@@ -120,15 +120,15 @@ resource "aws_route53_record" "private_aurora" { ...@@ -120,15 +120,15 @@ resource "aws_route53_record" "private_aurora" {
# Outputs # Outputs
############################################################################################################# #############################################################################################################
output "cluster_id" { output "cluster_id" {
value = "${aws_cluster.default.id}" value = "${aws_rds_cluster.default.id}"
} }
output "instance_id" { output "instance_id" {
value = "${aws_cluster_instance.default.id}" value = "${aws_rds_cluster_instance.default.id}"
} }
output "instance_address" { output "instance_address" {
value = "${aws_cluster_instance.default.address}" value = "${aws_rds_cluster_instance.default.address}"
} }
output "subnet_group_id" { output "subnet_group_id" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment