-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alicloud_ecs_key_pair_attachment rewrites in for_each loop #6925
Comments
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 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
The text was updated successfully, but these errors were encountered: