-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MM-60286: Fix deletion of DB param group
We need to use the create_before_destroy lifecycle configuration to allow Terraform to properly change settings of the parameter group: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_parameter_group#create_before_destroy-lifecycle-configuration. Additionally, we induce a sleep of 30 seconds to delay the destruction of param group after the destruction of db cluster. This ensures that everything happens in the correct order. While here, we also remove installation of inux-tools-aws-lts-22.04. More context on that: https://community.mattermost.com/core/pl/a7krecfgjpyoty8q7edy61k4ao Bonus fix: we create the redis security group conditionally as well. Just one of those small oversights. https://mattermost.atlassian.net/browse/MM-60286
- Loading branch information
Showing
4 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters