Open igorfraa opened 7 months ago
please note if any more information needed
carefully reading corresponding resource I didn't get how is this supposed to go.
Dear Developer He Guimin (@xiaozhu36), would you have a chance to look into?
Hi @igorfraa I am sorry for late reply, what do you mean "rewrites"? Do the multi key pairs can not be attached multi ecs instances accuratly?
Hi @xiaozhu36 yes - multiple key pairs are not attached correctly.
If I recall correctly, in some tries I've seen more then one key pair attached, up to 3 or 5 random keys out of the 20 in list.
HI @igorfraa Based on your tf template, I made a test with 5 instance ids, and it can works well and did not happen your issue. Could please share me more details? like tf command outputs and diff logs after running it.
Terraform Version
(also other versions)
Affected Resource(s)
Expected Behavior
Multiple ssh keys attached (binded in Alicloud terms) to the ECS instance.
Actual Behavior
One or more keys got binded but never all at once. Note: It seems the longer the list, the more keys got attached (up to 3-5 keys from list of 20). Attachments are random.
With
force=true
only the last key attaches through all the cases. Though this can be explained throughout the docs.Terraform Configuration Files
Steps to Reproduce
terraform apply