fix(tg_connection): handle create timeout by checking existing connec…#6703
fix(tg_connection): handle create timeout by checking existing connec…#6703hkantare merged 3 commits intoIBM-Cloud:masterfrom
Conversation
|
@anaghajoshiibm |
|
Thanks for the suggestion! @hkantare To address the concern about wait failures and ensuring we don’t proceed incorrectly, I’ve added explicit post-timeout validation: I validated this behaviour with forced timeout scenarios: Timeout occurs → GET confirms resource in pending → adopted successfully Please let me know if you would prefer a different approach, I’m happy to align and make changes accordingly. |
Summary
Fixes an issue where Transit Gateway connection creation fails with "connection already exists" if a timeout occurs during create.
Fix
If create times out, the provider now checks whether the connection was successfully created in the backend.
If it exists, it is adopted into state instead of retrying creation.
Testing