sparse-intern-71089
06/19/2023, 2:34 PMbillowy-army-68599
BackendArrayInput{}
type, which will allow you to append to an array:
var iTypes = pulumi.StringArray{}
iTypes = append(iTypes, pulumi.String("t3.medium"))
refined-pilot-45584
06/19/2023, 3:43 PMvar BackendServiceBackendArray = &compute.BackendServiceBackendArray{}
// LOOP START
// DYNAMIC STUFF Create new Array Item
newItem := &compute.BackendServiceBackendArrayInput{
&compute.BackendServiceBackendArgs{
// CONTENT
},
}
// Append Item to Existing Array
BackendServiceBackendArray = append(BackendServiceBackendArray, NewItem)
// END LOOP
I am not 100% sure if I am using the BackendArrayInput type in the correct location here;billowy-army-68599
refined-pilot-45584
06/19/2023, 3:57 PM