When we try to create many bindings at once, conflicts may occur because when building resource IDs InstanceId, VirtualHost, SourceExchange and DestinationName are considered.
When new binding is created and we read data from the API DestinationName is missing when looking for the right binding. It may happen that when we have many bindings for the same Exchange, the wrong state will be saved.
To reproduce this issue, you can consider the following example:
When we try to create many bindings at once, conflicts may occur because when building resource IDs
InstanceId
,VirtualHost
,SourceExchange
andDestinationName
are considered.When new binding is created and we read data from the API
DestinationName
is missing when looking for the right binding. It may happen that when we have many bindings for the same Exchange, the wrong state will be saved.To reproduce this issue, you can consider the following example:
PR: https://github.com/aliyun/terraform-provider-alicloud/pull/7077