-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
266640a
commit 6005c80
Showing
10 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
terraform/aurora-postgres16-1-primaries-0-replicas-r6gd.2xlarge/common.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
################################################################################ | ||
# This is the bucket holding this specific setup tfstate | ||
################################################################################ | ||
terraform { | ||
backend "s3" { | ||
bucket = "performance-cto-group" | ||
region = "us-east-1" | ||
} | ||
} | ||
|
40 changes: 40 additions & 0 deletions
40
terraform/aurora-postgres16-1-primaries-0-replicas-r6gd.2xlarge/db.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
module "cluster" { | ||
source = "terraform-aws-modules/rds-aurora/aws" | ||
|
||
name = "vector-benchmark-aurora-db-r6gd-2xlarge-postgres-16-1" | ||
engine = "aurora-postgresql" | ||
engine_version = "16.1" | ||
instance_class = "db.r6gd.large" | ||
instances = { | ||
one = { | ||
instance_class = "db.r6gd.2xlarge" | ||
} | ||
} | ||
manage_master_user_password = false | ||
master_password = "performance" | ||
master_username = "postgres" | ||
|
||
vpc_id = data.terraform_remote_state.shared_resources.outputs.performance_cto_vpc_id | ||
db_subnet_group_name = "perf-cto-us-east-2-documentdb-subnetgroup" | ||
|
||
security_group_rules = { | ||
ex1_ingress = { | ||
cidr_blocks = ["10.20.0.0/20"] | ||
} | ||
ex1_ingress = { | ||
source_security_group_id = "${data.terraform_remote_state.shared_resources.outputs.performance_cto_sg_id}" | ||
} | ||
} | ||
|
||
storage_encrypted = true | ||
apply_immediately = true | ||
monitoring_interval = 10 | ||
skip_final_snapshot = true | ||
|
||
|
||
tags = { | ||
"Name" = "vector-benchmark-aurora-db-r6gd-2xlarge-postgres-16-1" | ||
Project = "Vector-Competitive-Aurora" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
terraform/aurora-postgres16-1-primaries-0-replicas-r6gd.2xlarge/output.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
output "primary_endpoint_address" { | ||
sensitive = true | ||
value = ["${module.cluster}"] | ||
} |
17 changes: 17 additions & 0 deletions
17
terraform/aurora-postgres16-1-primaries-0-replicas-r6gd.2xlarge/shared_resources.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# provider | ||
provider "aws" { | ||
region = var.region | ||
} | ||
|
||
################################################################################ | ||
# This is the shared resources bucket key -- you will need it across environments like security rules,etc... | ||
# !! do not change this !! | ||
################################################################################ | ||
data "terraform_remote_state" "shared_resources" { | ||
backend = "s3" | ||
config = { | ||
bucket = "performance-cto-group" | ||
key = "benchmarks/infrastructure/shared_resources.tfstate" | ||
region = "us-east-1" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
terraform/aurora-postgres16-1-primaries-0-replicas-r6gd.2xlarge/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
variable "region" { | ||
default = "us-east-2" | ||
} |
11 changes: 11 additions & 0 deletions
11
terraform/aurora-postgres16-1-primaries-0-replicas-r7g.2xlarge/common.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
################################################################################ | ||
# This is the bucket holding this specific setup tfstate | ||
################################################################################ | ||
terraform { | ||
backend "s3" { | ||
bucket = "performance-cto-group" | ||
region = "us-east-1" | ||
} | ||
} | ||
|
41 changes: 41 additions & 0 deletions
41
terraform/aurora-postgres16-1-primaries-0-replicas-r7g.2xlarge/db.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
module "cluster" { | ||
source = "terraform-aws-modules/rds-aurora/aws" | ||
|
||
name = "vector-benchmark-aurora-db-postgres-16-1" | ||
engine = "aurora-postgresql" | ||
engine_version = "16.1" | ||
instance_class = "db.r7g.large" | ||
instances = { | ||
one = { | ||
instance_class = "db.r7g.2xlarge" | ||
} | ||
} | ||
manage_master_user_password = false | ||
master_password = "performance" | ||
master_username = "postgres" | ||
|
||
vpc_id = data.terraform_remote_state.shared_resources.outputs.performance_cto_vpc_id | ||
db_subnet_group_name = "perf-cto-us-east-2-documentdb-subnetgroup" | ||
|
||
security_group_rules = { | ||
ex1_ingress = { | ||
cidr_blocks = ["10.20.0.0/20"] | ||
} | ||
ex1_ingress = { | ||
source_security_group_id = "${data.terraform_remote_state.shared_resources.outputs.performance_cto_sg_id}" | ||
} | ||
} | ||
|
||
storage_encrypted = true | ||
apply_immediately = true | ||
monitoring_interval = 10 | ||
skip_final_snapshot = true | ||
|
||
# enabled_cloudwatch_logs_exports = ["postgresql"] | ||
|
||
tags = { | ||
"Name" = "vector-benchmark-aurora-db-postgres-16-1" | ||
Project = "Vector-Competitive-Aurora" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
terraform/aurora-postgres16-1-primaries-0-replicas-r7g.2xlarge/output.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
output "primary_endpoint_address" { | ||
sensitive = true | ||
value = ["${module.cluster}"] | ||
} |
17 changes: 17 additions & 0 deletions
17
terraform/aurora-postgres16-1-primaries-0-replicas-r7g.2xlarge/shared_resources.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# provider | ||
provider "aws" { | ||
region = var.region | ||
} | ||
|
||
################################################################################ | ||
# This is the shared resources bucket key -- you will need it across environments like security rules,etc... | ||
# !! do not change this !! | ||
################################################################################ | ||
data "terraform_remote_state" "shared_resources" { | ||
backend = "s3" | ||
config = { | ||
bucket = "performance-cto-group" | ||
key = "benchmarks/infrastructure/shared_resources.tfstate" | ||
region = "us-east-1" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
terraform/aurora-postgres16-1-primaries-0-replicas-r7g.2xlarge/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
variable "region" { | ||
default = "us-east-2" | ||
} |