Retain Network stack in dual-master
Blue/green deployment of the dual-master recipe requires that the blue
and the green stacks are deployed within the same VPC.
In order to preserve the VPC, the IGW and the subnet upon deletion of
the blue stack, the nested network cloudformation template needs to be
protected from deletion.
diff --git a/dual-master/README.md b/dual-master/README.md
index 359099d..01abceb 100644
@@ -132,6 +132,9 @@
they will be retained during the stack deletion, so that they can still be used
by the green stack.
+This includes EFS as well as VPC resources (if they were created as part of the
* All the logs are forwarded to AWS CloudWatch in the LogGroup with the cluster
diff --git a/dual-master/cf-cluster.yml b/dual-master/cf-cluster.yml
index 0c37ad4..841e7e0 100644
@@ -312,6 +312,7 @@
+ DeletionPolicy: Retain
TemplateURL: !Join [ '', ['https://', !Ref TemplateBucketName, '.s3.amazonaws.com/cf-gerrit-network-stack.yml'] ]