-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Enhancement]: Support for performing switchover for RDS blue green deployment #40237
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @sp055201, As far as I could, the issue seems mostly to be that the green instance can take a long time to be ready for switchover which makes terraform hang for a while, eventually long enough for terraform to time out. |
Hey @sp055201 👋 Thank you for taking the time to raise this! As mentioned above, the switchover should be handled automatically by the provider (we wrote about this in our design decision log). Are you seeing behavior that falls outside of that? |
@justinretzolk, as I mentioned in the other issue,by enabling blue green deployment using belowblue_green_update {
|
Thank you for the follow up here, @sp055201. What you've described in your suggestion is what's covered in the Standalone Blue/Green Deployment Resource section of the design decision log that I mentioned in my last comment (albeit, as additional arguments rather than a separate resource). Having multiple steps like you've described, where the configuration must be edited and applied multiple times (and resource(s) imported in the midst of that), doesn't fit well with Terraform's model. While I can see what you're looking for, the AWS CLI / Console aren't really an accurate comparison to a declarative/idempotent tool like Terraform. With that in mind, the |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
Description
Currently, Terraform does not natively support performing a switchover for RDS Blue/Green deployments via a direct Terraform resource or argument. The Terraform configuration allows you to create and manage the Blue/Green environments, but the switchover action itself (switching from the Blue to the Green environment) is an operational action that typically needs to be done via the AWS Management Console, AWS CLI, or an API call.
If you perform the switchover manually outside of Terraform (e.g., using the AWS Console, CLI, or SDK), it will not automatically update Terraform’s state, leading to drift. This means Terraform will not be aware of the switchover action, and any subsequent Terraform actions might conflict or behave unexpectedly.
Affected Resource(s) and/or Data Source(s)
aws_db_instance
Potential Terraform Configuration
References
https://github.com/hashicorp/terraform-provider-aws/blob/main/docs/design-decisions/rds-bluegreen-deployments.md
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: