Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Aurora deletion protection variable #116

Merged
merged 11 commits into from
Sep 12, 2019
Merged

Conversation

chauvm
Copy link
Contributor

@chauvm chauvm commented Sep 10, 2019

No description provided.

@chauvm chauvm requested a review from a team as a code owner September 10, 2019 17:56
@@ -50,6 +50,7 @@ resource "aws_rds_cluster" "db" {
kms_key_id = "${var.kms_key_id}"
port = "${var.port}"
db_cluster_parameter_group_name = "${aws_rds_cluster_parameter_group.db.id}"
deletion_protection = "${var.db_deletion_protection}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaulting this to true might break some of the tests in this repo, the tests might need to specify a false

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm I'll change the default to false then, since I need this one now. But I think deletion protection should be true by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change it if the tests fail

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i think deletion protection can stay true, but the terraform in the tests need to specify false

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might also need to go manually delete these databases since the test will probably not be able to delete them

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deleted the stale databases. I can't find a quick way to set the boolean to false in the test though, I'll leave it to default for now.

@chauvm chauvm merged commit ddf566a into master Sep 12, 2019
@ryanking ryanking deleted the cvu/aurora_deletion_protection branch July 15, 2020 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants