Skip to content

Commit 8b46224

Browse files
committed
examples for version 1.0
1 parent d60007d commit 8b46224

File tree

14 files changed

+87
-23
lines changed

14 files changed

+87
-23
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ module "redis" {
5454
maxmemory_policy = "allkeys-lru"
5555
}
5656
57+
# Nodes are patched one at a time to prevent data loss. Basic caches will have data loss.
58+
# Clustered caches are patched one shard at a time.
59+
# The Patch Window lasts for 5 hours from the start_hour_utc
60+
patch_schedule = {
61+
days_of_week = "Monday"
62+
start_hour_utc = 21
63+
}
64+
5765
#Azure Cache for Redis firewall filter rules are used to provide specific source IP access.
5866
# Azure Redis Cache access is determined based on start and end IP address range specified.
5967
# As a rule, only specific IP addresses should be granted access, and all others denied.

examples/Azure_Cache_for_Redis_with_Cluster/output.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ output "redis_cache_ssl_port" {
1616
output "redis_cache_port" {
1717
description = "The non-SSL Port of the Redis Instance"
1818
value = module.redis.redis_cache_port
19+
sensitive = true
1920
}
2021

2122
output "redis_cache_primary_access_key" {

examples/Azure_Cache_for_Redis_with_Data_Persistence_Enabled/output.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ output "redis_cache_ssl_port" {
1616
output "redis_cache_port" {
1717
description = "The non-SSL Port of the Redis Instance"
1818
value = module.redis.redis_cache_port
19+
sensitive = true
1920
}
2021

2122
output "redis_cache_primary_access_key" {

examples/Azure_Cache_for_Redis_with_Private_Endpoint/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ module "redis" {
2929
shard_count = 3
3030
zones = ["1", "2", "3"]
3131
enable_non_ssl_port = true
32-
patch_schedule = {
33-
days_of_week = "Monday"
34-
start_hour_utc = 21
35-
}
3632
}
3733
}
3834
@@ -44,6 +40,14 @@ module "redis" {
4440
maxmemory_policy = "allkeys-lru"
4541
}
4642
43+
# Nodes are patched one at a time to prevent data loss. Basic caches will have data loss.
44+
# Clustered caches are patched one shard at a time.
45+
# The Patch Window lasts for 5 hours from the start_hour_utc
46+
patch_schedule = {
47+
days_of_week = "Monday"
48+
start_hour_utc = 21
49+
}
50+
4751
#Azure Cache for Redis firewall filter rules are used to provide specific source IP access.
4852
# Azure Redis Cache access is determined based on start and end IP address range specified.
4953
# As a rule, only specific IP addresses should be granted access, and all others denied.

examples/Azure_Cache_for_Redis_with_Private_Endpoint/main.tf

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ module "redis" {
2020
shard_count = 3
2121
zones = ["1", "2", "3"]
2222
enable_non_ssl_port = true
23-
patch_schedule = {
24-
days_of_week = "Monday"
25-
start_hour_utc = 21
26-
}
2723
}
2824
}
2925

@@ -35,6 +31,14 @@ module "redis" {
3531
maxmemory_policy = "allkeys-lru"
3632
}
3733

34+
# Nodes are patched one at a time to prevent data loss. Basic caches will have data loss.
35+
# Clustered caches are patched one shard at a time.
36+
# The Patch Window lasts for 5 hours from the start_hour_utc
37+
patch_schedule = {
38+
days_of_week = "Monday"
39+
start_hour_utc = 21
40+
}
41+
3842
#Azure Cache for Redis firewall filter rules are used to provide specific source IP access.
3943
# Azure Redis Cache access is determined based on start and end IP address range specified.
4044
# As a rule, only specific IP addresses should be granted access, and all others denied.

examples/Azure_Cache_for_Redis_with_Private_Endpoint/output.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ output "redis_cache_ssl_port" {
1616
output "redis_cache_port" {
1717
description = "The non-SSL Port of the Redis Instance"
1818
value = module.redis.redis_cache_port
19+
sensitive = true
1920
}
2021

2122
output "redis_cache_primary_access_key" {

examples/Azure_Cache_for_Redis_with_Private_Endpoint/variables.tf

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ module "redis" {
3737
maxmemory_policy = "allkeys-lru"
3838
}
3939
40+
# Nodes are patched one at a time to prevent data loss. Basic caches will have data loss.
41+
# Clustered caches are patched one shard at a time.
42+
# The Patch Window lasts for 5 hours from the `start_hour_utc`
43+
patch_schedule = {
44+
day_of_week = "Saturday"
45+
start_hour_utc = 10
46+
}
47+
4048
# (Optional) To enable Azure Monitoring for Azure Cache for Redis
4149
# (Optional) Specify `storage_account_name` to save monitoring logs to storage.
4250
log_analytics_workspace_name = "loganalytics-we-sharedtest2"
@@ -270,10 +278,6 @@ module "redis" {
270278
shard_count = 3
271279
zones = ["1", "2", "3"]
272280
enable_non_ssl_port = true
273-
patch_schedule = {
274-
days_of_week = "Monday"
275-
start_hour_utc = 21
276-
}
277281
}
278282
}
279283
@@ -285,6 +289,14 @@ module "redis" {
285289
maxmemory_policy = "allkeys-lru"
286290
}
287291
292+
# Nodes are patched one at a time to prevent data loss. Basic caches will have data loss.
293+
# Clustered caches are patched one shard at a time.
294+
# The Patch Window lasts for 5 hours from the `start_hour_utc`
295+
patch_schedule = {
296+
day_of_week = "Saturday"
297+
start_hour_utc = 10
298+
}
299+
288300
#Azure Cache for Redis firewall filter rules are used to provide specific source IP access.
289301
# Azure Redis Cache access is determined based on start and end IP address range specified.
290302
# As a rule, only specific IP addresses should be granted access, and all others denied.

examples/Simple_Azure_Cache_for_Redis/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ module "redis" {
3737
maxmemory_policy = "allkeys-lru"
3838
}
3939
40+
# Nodes are patched one at a time to prevent data loss. Basic caches will have data loss.
41+
# Clustered caches are patched one shard at a time.
42+
# The Patch Window lasts for 5 hours from the `start_hour_utc`
43+
patch_schedule = {
44+
day_of_week = "Saturday"
45+
start_hour_utc = 10
46+
}
47+
4048
# (Optional) To enable Azure Monitoring for Azure Cache for Redis
4149
# (Optional) Specify `storage_account_name` to save monitoring logs to storage.
4250
log_analytics_workspace_name = "loganalytics-we-sharedtest2"

examples/Simple_Azure_Cache_for_Redis/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ module "redis" {
2020
}
2121
}
2222

23+
# Nodes are patched one at a time to prevent data loss. Basic caches will have data loss.
24+
# Clustered caches are patched one shard at a time.
25+
# The Patch Window lasts for 5 hours from the `start_hour_utc`
26+
patch_schedule = {
27+
day_of_week = "Saturday"
28+
start_hour_utc = 10
29+
}
30+
2331
# MEMORY MANAGEMENT
2432
# Azure Cache for Redis instances are configured with the following default Redis configuration values:
2533
redis_configuration = {

0 commit comments

Comments
 (0)