-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
3 changed files
with
15 additions
and
9 deletions.
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
resource "aws_cloudwatch_log_group" "slow_log" { | ||
name = "/elasticache/${aws_elasticache_replication_group.app4.replication_group_id}/slow-log" | ||
name = "/elasticache/${var.replication_group_id}/slow-log" | ||
retention_in_days = 365 | ||
kms_key_id = aws_kms_key.encrytion_rest.id | ||
} | ||
resource "aws_cloudwatch_log_group" "engine_log" { | ||
name = "/elasticache/${aws_elasticache_replication_group.app4.replication_group_id}/engine-log" | ||
name = "/elasticache/${var.replication_group_id}/engine-log" | ||
retention_in_days = 365 | ||
kms_key_id = aws_kms_key.encrytion_rest.id | ||
} |
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
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 |
---|---|---|
@@ -1,34 +1,40 @@ | ||
#Define AWS Region | ||
variable "region" { | ||
description = "Infrastructure region" | ||
description = "AWS Cloud infrastructure region." | ||
type = string | ||
default = "us-east-2" | ||
} | ||
#Define IAM User Access Key | ||
variable "access_key" { | ||
description = "The access_key that belongs to the IAM user" | ||
description = "The access_key that belongs to the IAM user." | ||
type = string | ||
sensitive = true | ||
default = "" | ||
} | ||
#Define IAM User Secret Key | ||
variable "secret_key" { | ||
description = "The secret_key that belongs to the IAM user" | ||
description = "The secret_key that belongs to the IAM user." | ||
type = string | ||
sensitive = true | ||
default = "" | ||
} | ||
variable "vpc_cidr" { | ||
description = "the vpc cidr" | ||
description = "CIDR for the VPC." | ||
default = "10.20.32.0/25" | ||
} | ||
variable "subnet_cidr_private" { | ||
description = "cidr blocks for the private subnets" | ||
description = "CIDR blocks for the private subnets." | ||
default = ["10.20.32.0/27", "10.20.32.32/27", "10.20.32.64/27"] | ||
type = list(any) | ||
} | ||
variable "subnet_cidr_public" { | ||
description = "cidr blocks for the public subnets" | ||
description = "CIDR blocks for the public subnets." | ||
default = ["10.20.32.96/27"] | ||
type = list(any) | ||
} | ||
|
||
variable "replication_group_id" { | ||
description = "The name of the ElastiCache replication group." | ||
default = "app-4-redis-cluster" | ||
type = string | ||
} |