File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ resource "oci_core_instance" "this" {
3030 subnet_id = " ${ data . oci_core_subnet . this . * . id [count . index % length (data. oci_core_subnet . this . * . id )]} "
3131 }
3232
33- metadata {
33+ metadata = {
3434 ssh_authorized_keys = " ${ file (" ${ var . ssh_authorized_keys } " )} "
3535 user_data = " ${ var . user_data } "
3636 }
@@ -61,8 +61,8 @@ resource "oci_core_volume" "this" {
6161 count = " ${ var . instance_count * length (var. block_storage_sizes_in_gbs )} "
6262 availability_domain = " ${ oci_core_instance . this . * . availability_domain [count . index % var . instance_count ]} "
6363 compartment_id = " ${ var . compartment_ocid } "
64- display_name = " ${ oci_core_instance . this . * . display_name [count . index % var . instance_count ]} _volume${ count . index / var . instance_count } "
65- size_in_gbs = " ${ element (var. block_storage_sizes_in_gbs , count. index / var. instance_count )} "
64+ display_name = " ${ oci_core_instance . this . * . display_name [count . index % var . instance_count ]} _volume${ floor ( count. index / var. instance_count ) } "
65+ size_in_gbs = " ${ element (var. block_storage_sizes_in_gbs , floor ( count. index / var. instance_count ) )} "
6666}
6767
6868# ###################
You can’t perform that action at this time.
0 commit comments