Skip to content

Commit 9163ebf

Browse files
committed
Add lifecycle ignore on az's
1 parent 2989a8d commit 9163ebf

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ resource "aws_rds_cluster" "default" {
241241
storage_encrypted = "${var.storage_encrypted}"
242242
apply_immediately = "${var.apply_immediately}"
243243
db_cluster_parameter_group_name = "${var.db_cluster_parameter_group_name}"
244+
245+
lifecycle {
246+
ignore_changes = [
247+
"availability_zones",
248+
]
249+
}
244250
}
245251

246252
// Geneate an ID when an environment is initialised

variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ variable "identifier_prefix" {
2727
variable "azs" {
2828
type = "list"
2929
description = "List of AZs to use"
30+
default = []
3031
}
3132

3233
variable "replica_count" {

0 commit comments

Comments
 (0)