terraform-provider-oci
terraform-provider-oci copied to clipboard
Resource `oci_os_management_hub_managed_instance_group` always triggers update on `software_source_ids`
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version and Provider Version
Terraform v1.5.7
on darwin_amd64
+ provider registry.terraform.io/oracle/oci v5.42.0
Affected Resource(s)
affected_resources = oci_os_management_hub_managed_instance_group
Terraform Configuration Files
# oci_os_management_hub_managed_instance_group.the_group will be updated in-place
~ resource "oci_os_management_hub_managed_instance_group" "the_group" {
id = "ocid1.osmhmanagedinstancegroup.oc1.iad.amaaaaau75jj7vo7aadly3vcyaku47nw7gl5l77dchazdjyqpslvil4wivyq"
~ software_source_ids = [
- "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyabr3g6to5homb3zbfgtvmaw66fysimfaousk5iy3o7eba",
- "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyavu6u4e4dbag3suvx6tgdequ7wjojmm3vtcng2p6nmkea",
+ "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyazm3ceshgxp47osx7j5ffp7uvbw3p3lncswtc5m4lwbpa",
+ "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyakef2til27gunt3wbshd33d7f6p5cgqonynzdo4mlykta",
"ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyaekdqajupoqh3z2m5lpce5kpp7pacpewigihhc5fmtsfq",
+ "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyaybfnw2tzcooojbgvkezjohwhx7rot4eoawl3662qmyna",
"ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyaahfaz4fmssh2bikykpv3vter6lofhtl53sg6wuklxqba",
"ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyaasquvgpknmndj5k4bcxsqhipxqr7de4qj4jslijz5kga",
- "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyakef2til27gunt3wbshd33d7f6p5cgqonynzdo4mlykta",
- "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyaybfnw2tzcooojbgvkezjohwhx7rot4eoawl3662qmyna",
- "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyazm3ceshgxp47osx7j5ffp7uvbw3p3lncswtc5m4lwbpa",
"ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyazq4c2mi7z5zng5ap2tocbr2nqvbjnd3lcxqiralflana",
+ "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyavu6u4e4dbag3suvx6tgdequ7wjojmm3vtcng2p6nmkea",
+ "ocid1.osmhsoftwaresource.oc1.iad.amaaaaaa2nbozuyabr3g6to5homb3zbfgtvmaw66fysimfaousk5iy3o7eba",
]
# (18 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Debug Output
Panic Output
Expected Behavior
Updating an oci_os_management_hub_managed_instance_group
resource should not trigger change if the only variation from the previous resource is order of the software_source_ids
. The order is not relevant to how the group operates and therefore can/should be allowed change without impact.
Actual Behavior
If an oci_os_management_hub_managed_instance_groupresource is updated it will always trigger a change based on the order of
software_source_ids`. Notably, the order of the IDs for the resource initially created does not align to the order of the input values (via list(string)) so, as is, the order is unpredictable even if one wanted to manually re-order to avoid the issue
Steps to Reproduce
-
terraform apply
-
terraform apply
again and note trigger to change even though nothing has changed. Is triggered only because the order ofsoftware_source_ids
in the created resource now does not match what was provided on input to create the resource - Manually re-order the
software_source_ids
input thenterraform apply
and note again will be prompted to accept a change (though no functional change has occurred).