resource/aws_dx_connection_association: Retry disassociation #3212
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is to address the following test failure:
I first thought it was because we don't wait for any particular state after connection creation, but the doesn't seem to matter as the connection has reached
requested
state (as it usually does) per debug log:and suddenly (out of the blue sky?) went into
pending
state.States are documented here:
https://docs.aws.amazon.com/directconnect/latest/APIReference/API_Connection.html#DX-Type-Connection-connectionState
Test results
As far as I understand the connection should never enter this state in our case as we don't really have any physical connection ready and/or pre-approved anywhere, so I'm not sure what's going on there, but this seems to be a harmless workaround?