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

[#185529919] Reworked instance tags in ruby script #3404

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

malcgds
Copy link
Contributor

@malcgds malcgds commented Sep 15, 2023

What

I re-worked the rds instance tags in the script because not all rds instances use the deploy_env tag.

When testing in prod (using --dry-run and paas-prod-ro mode) I found that the script baulked with an exception if calling describe_orderable_db_instance_options with engine = postgres and engine_version = 10.23. I changed the script so that if it does find an existing postgres rds with an engine version of "10.xx" it will report it, will not attempt to upgrade it and will move on.

How to review

1 - review the code.
2 - In --dry-run mode the script should not try to modify anything but when running in a new environment I would also give yourself read-only access.
3 - Try it out in a dev env.


🚨⚠️ Please do not merge this pull request via the GitHub UI ⚠️🚨

if instance.engine == "postgres" && instance.engine_version.start_with?("10.")
MyLogger.instance.log_warn("instance #{instance.db_instance_identifier} is postgres 10 and will not be processed.")
next
end
Copy link
Member

Choose a reason for hiding this comment

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

We.. have pg10 databases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it also surprised Andy

@malcgds malcgds closed this Oct 3, 2023
@malcgds malcgds merged commit b78dc37 into main Oct 3, 2023
8 checks passed
@malcgds malcgds deleted the 185529919-tag-name-rework branch October 3, 2023 12:55
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.

2 participants