You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Verbose"===> Downloading the release artifact $releaseArtifactUrl from the GitHub repository $repoOrgPlusRepo to staging location $targetPathForZip"
111
+
112
+
$downloadParams=@{
113
+
Uri=$releaseArtifactUrl
114
+
OutputFile=$targetPathForZip
115
+
MaxRetryCount=$maxRetryCount
116
+
RetryIntervalSeconds=$retryIntervalSeconds
117
+
}
118
+
if ($PSBoundParameters.ContainsKey("httpRequestTimeoutSeconds")) {
Copy file name to clipboardExpand all lines: src/ALZ/Public/Deploy-Accelerator.ps1
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -221,7 +221,15 @@ function Deploy-Accelerator {
221
221
)]
222
222
[Alias("hrts")]
223
223
[Alias("httpRequestTimeoutSeconds")]
224
-
[int] $http_request_timeout_seconds
224
+
[int] $http_request_timeout_seconds,
225
+
226
+
[Parameter(
227
+
Mandatory=$false,
228
+
HelpMessage="[OPTIONAL] The version of Terraform to download and use. Defaults to '1.14.9'. Specify 'latest' to download the latest stable release. Environment variable: ALZ_terraform_version. Config file input: terraform_version."
229
+
)]
230
+
[Alias("tv")]
231
+
[Alias("terraformVersion")]
232
+
[string] $terraform_version="1.14.9"
225
233
)
226
234
227
235
$ProgressPreference="SilentlyContinue"
@@ -355,9 +363,9 @@ function Deploy-Accelerator {
355
363
if ($skipInternetChecks) {
356
364
Write-ToConsoleLog"Skipping Terraform tool check as you used the skipInternetCheck parameter. Please ensure you have the most recent version of Terraform installed"-IsWarning
357
365
} else {
358
-
Write-ToConsoleLog"Checking you have the latest version of Terraform installed..."-IsSuccess
366
+
Write-ToConsoleLog"Checking you have the correct version of Terraform installed..."-IsSuccess
0 commit comments