Situation:
When trying to install REDIS, it tries to establish a private services access connection with a shared VPC network. When creating this for Tower, somehow the reserved IP we have set for Redis appears to be in use.
Solution:
In order to get around that, I had to create the REDIS on a different reserved IP range than the hard-coded one we use. So this PR makes it a configurable parameter. Test to show this works
Situation 2:
None of our GCP databases have deletion protection enabled because there are two different variables to control the deletion protection. More on the thread here
Solution:
Enable deletion protection at all levels (GCP, gcloud, CLI etc.) and not just at terraform deletion level. Test to show this works
Situation: When trying to install REDIS, it tries to establish a private services access connection with a shared VPC network. When creating this for Tower, somehow the reserved IP we have set for Redis appears to be in use.
Solution: In order to get around that, I had to create the REDIS on a different reserved IP range than the hard-coded one we use. So this PR makes it a configurable parameter. Test to show this works
Situation 2: None of our GCP databases have deletion protection enabled because there are two different variables to control the deletion protection. More on the thread here
Solution: Enable deletion protection at all levels (GCP, gcloud, CLI etc.) and not just at terraform deletion level. Test to show this works