@@ -125,8 +125,9 @@ function New-Bootstrap {
125125
126126 # Add the root module folder to bootstrap input config
127127 $inputConfig | Add-Member - NotePropertyName " root_module_folder_relative_path" - NotePropertyValue @ {
128- Value = $starterRootModuleFolder
129- Source = " calculated"
128+ Value = $starterRootModuleFolder
129+ Source = " calculated"
130+ Sensitive = $false
130131 }
131132
132133 # Set the starter root module folder full path
@@ -146,6 +147,8 @@ function New-Bootstrap {
146147 $bootstrapParameters = Convert-HCLVariablesToInputConfig - targetVariableFile $terraformFile.FullName - hclParserToolPath $hclParserToolPath - appendToObject $bootstrapParameters
147148 }
148149
150+ Write-Verbose " Bootstrap Parameters before setting config: $ ( ConvertTo-Json $bootstrapParameters - Depth 100 ) "
151+
149152 # Getting the configuration for the starter module user input
150153 $starterParameters = [PSCustomObject ]@ {}
151154
@@ -165,19 +168,22 @@ function New-Bootstrap {
165168
166169 # Set computed inputs
167170 $inputConfig | Add-Member - NotePropertyName " module_folder_path" - NotePropertyValue @ {
168- Value = $starterModulePath
169- Source = " calculated"
171+ Value = $starterModulePath
172+ Source = " calculated"
173+ Sensitive = $false
170174 }
171175 $inputConfig | Add-Member - NotePropertyName " availability_zones_bootstrap" - NotePropertyValue @ {
172- Value = @ (Get-AvailabilityZonesSupport - region $inputConfig.bootstrap_location.Value - zonesSupport $zonesSupport )
173- Source = " calculated"
176+ Value = @ (Get-AvailabilityZonesSupport - region $inputConfig.bootstrap_location.Value - zonesSupport $zonesSupport )
177+ Source = " calculated"
178+ Sensitive = $false
174179 }
175180
176181 if ($inputConfig.PSObject.Properties.Name -contains " starter_location" -and $inputConfig.PSObject.Properties.Name -notcontains " starter_locations" ) {
177182 Write-Verbose " Converting starter_location $ ( $inputConfig.starter_location.Value ) to starter_locations..."
178183 $inputConfig | Add-Member - NotePropertyName " starter_locations" - NotePropertyValue @ {
179- Value = @ ($inputConfig.starter_location.Value )
180- Source = " calculated"
184+ Value = @ ($inputConfig.starter_location.Value )
185+ Source = " calculated"
186+ Sensitive = $false
181187 }
182188 }
183189
@@ -187,8 +193,9 @@ function New-Bootstrap {
187193 $availabilityZonesStarter += , @ (Get-AvailabilityZonesSupport - region $region - zonesSupport $zonesSupport )
188194 }
189195 $inputConfig | Add-Member - NotePropertyName " availability_zones_starter" - NotePropertyValue @ {
190- Value = $availabilityZonesStarter
191- Source = " calculated"
196+ Value = $availabilityZonesStarter
197+ Source = " calculated"
198+ Sensitive = $false
192199 }
193200 }
194201
@@ -200,20 +207,23 @@ function New-Bootstrap {
200207 - configurationParameters $bootstrapParameters `
201208 - inputConfig $inputConfig
202209
210+ Write-Verbose " Final Bootstrap Parameters: $ ( ConvertTo-Json $bootstrapConfiguration - Depth 100 ) "
211+
203212 # Getting the input for the starter module
204213 Write-Verbose " Setting the configuration for the starter module..."
205214 $starterConfiguration = Set-Config `
206215 - configurationParameters $starterParameters `
207216 - inputConfig $inputConfig `
208217 - copyEnvVarToConfig
209218
210- Write-Verbose " Final Starter Parameters: $ ( ConvertTo-Json $starterParameters - Depth 100 ) "
219+ Write-Verbose " Final Starter Parameters: $ ( ConvertTo-Json $starterConfiguration - Depth 100 ) "
211220
212221 # Creating the tfvars files for the bootstrap and starter module
213222 $tfVarsFileName = " terraform.tfvars.json"
214223 $bootstrapTfvarsPath = Join-Path - Path $bootstrapModulePath - ChildPath $tfVarsFileName
215224 $starterTfvarsPath = Join-Path - Path $starterRootModuleFolderPath - ChildPath " terraform.tfvars.json"
216225 $starterBicepVarsPath = Join-Path - Path $starterModulePath - ChildPath " parameters.json"
226+ $starterBicepAllVarsPath = Join-Path - Path $starterModulePath - ChildPath " parameters.all.json"
217227
218228 # Write the tfvars file for the bootstrap and starter module
219229 Write-TfvarsJsonFile - tfvarsFilePath $bootstrapTfvarsPath - configuration $bootstrapConfiguration
@@ -270,10 +280,12 @@ function New-Bootstrap {
270280 Set-ComputedConfiguration - configuration $starterConfiguration
271281 Edit-ALZConfigurationFilesInPlace - alzEnvironmentDestination $starterModulePath - configuration $starterConfiguration
272282 Write-JsonFile - jsonFilePath $starterBicepVarsPath - configuration $starterConfiguration
283+ Write-JsonFile - jsonFilePath $starterBicepAllVarsPath - configuration @ ($inputConfig , $starterConfiguration , $bootstrapConfiguration ) - all
273284
274285 # Remove unrequired files
275286 $foldersOrFilesToRetain = $starterConfig.starter_modules.Value .$ ($inputConfig.starter_module_name.Value ).folders_or_files_to_retain
276287 $foldersOrFilesToRetain += " parameters.json"
288+ $foldersOrFilesToRetain += " parameters.all.json"
277289 $foldersOrFilesToRetain += " config"
278290 $foldersOrFilesToRetain += " .config"
279291
0 commit comments