-
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.
fix on parameter group cluster mode off defualt
- Loading branch information
1 parent
18f1e1b
commit e43a4e6
Showing
5 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
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,39 @@ | ||
module "vpc" { | ||
source = "terraform-aws-modules/vpc/aws" | ||
|
||
name = "simple-vpc" | ||
cidr = "10.2.0.0/16" | ||
|
||
azs = ["ca-central-1a", "ca-central-1b"] | ||
private_subnets = ["10.2.1.0/24", "10.2.2.0/24"] | ||
public_subnets = ["10.2.101.0/24", "10.2.102.0/24"] | ||
|
||
enable_nat_gateway = true | ||
single_nat_gateway = false | ||
|
||
tags = { | ||
Name = "simple-vpc" | ||
Enviroment = "Production" | ||
} | ||
|
||
} | ||
|
||
module "redis" { | ||
namespace = "redis-replication-example" | ||
source = "Mehdikarimian/elasticache-redis-cluster/aws" | ||
version = "1.0.0" | ||
vpc_id = module.vpc.vpc_id | ||
subnet_ids = module.vpc.private_subnets | ||
node_type = "cache.t3.small" | ||
cluster_description = "redis replication group example description" | ||
subnet_name = "redis-replication-group-example-subnet" | ||
apply_immediately = true | ||
|
||
number_replica = 3 | ||
|
||
security_group_name = "redis-replication-group-example-security-group" | ||
tags = { | ||
Name = "redis-replication-group-example" | ||
Enviroment = "Production", | ||
} | ||
} |
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,4 @@ | ||
provider "aws" { | ||
region = var.aws_region | ||
profile = var.profile | ||
} |
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,10 @@ | ||
variable "profile" { | ||
description = "" | ||
} | ||
|
||
variable "aws_region" { | ||
default = "ca-central-1" | ||
description = "aws region where our resources going to create choose" | ||
#replace the region as suits for your requirement | ||
} | ||
|
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,10 @@ | ||
terraform { | ||
required_version = ">= 0.14.9" | ||
|
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 4.11.0" | ||
} | ||
} | ||
} |
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