Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup redis cache on plum #974

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 1 addition & 46 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,49 +129,4 @@ module "policy" {
api_name = module.api.name
api_policy_xml_content = local.api_policy
}
# endregion

# REDIS CACHE TESTING

variable "rdb_backup_enabled" {
type = bool
default = false
}

variable "sku_name" {
default = "Basic"
description = "The SKU of Redis to use. Possible values are `Basic`, `Standard` and `Premium`."
}

variable "family" {
default = "C"
description = "The SKU family/pricing group to use. Valid values are `C` (for Basic/Standard SKU family) and `P` (for Premium). Use P for higher availability, but beware it costs a lot more."
}

variable "redis_capacity" {
default = "1"
description = "The size of the Redis cache to deploy. Valid values are 1, 2, 3, 4, 5"
}

variable "redis_backup_frequency" {
default = "360"
description = "The Backup Frequency in Minutes. Only supported on Premium SKUs. Possible values are: 15, 30, 60, 360, 720 and 1440"
}

module "plum-redis-storage" {
source = "[email protected]:hmcts/cnp-module-redis?ref=DTSPO-17012-data-persistency"
product = "${var.product}-${var.component}-session-storage"
location = var.location
env = var.env
private_endpoint_enabled = true
redis_version = "6"
business_area = "cft"
public_network_access_enabled = false
common_tags = var.common_tags
sku_name = var.sku_name
family = var.family
capacity = var.redis_capacity
rdb_backup_enabled = var.rdb_backup_enabled
rdb_backup_frequency = var.redis_backup_frequency
rdb_storage_account_name_prefix = var.product
}
# endregion
3 changes: 0 additions & 3 deletions infrastructure/sandbox.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
api_gateway_test_certificate_thumbprint = "4A98AB1CFFBA46CACBC7D8D3E10FDA667261DFAA"
rdb_backup_enabled = true
family = "P"
sku_name = "Premium"