I have some terraform configurations which provision RDS instances in AWS. Up until today, they have worked really well. However I now typically get a timeout while terraform is waiting for the RDS instance to become available.
The errors look like this:
aws_db_instance.user_db: Error: timeout while waiting for state to become 'available'
When I encounter the error, I have noted that the RDS instance is in a state of "Backing Up". A minute or so later the RDS indeed moves to the "Available" state.
Does terraform support configuring the timeout it uses for waiting on these transitions? I've not found any in the documentation. I have the code up and it
appears that WaitForState() in helper\resource\state.go is responsible for this waiting and is perhaps configurable via this conf *StateChangeConf parameter as of 0.3.7. I'm digging around to see if there is a way for me to configure the .Timeout field. (This is literally my first ever look at Go so forgive any ignorance if I'm completely off here)
I'll continue to dig around but if anyone has any pointers on how to configure the timeout, that will be greatly appreciated!
Thanks,
Joe