Skip to content

Commit 506a4eb

Browse files
committed
Fix windows param names
1 parent 5af8292 commit 506a4eb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Management-Utilities/ec2-user-data-iscsi-create-and-mount/windows_userData.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<powershell>
22
# This script is used to install and configure FSx for Windows File Server
33
param(
4-
[string]$SecretId,
5-
[string]$FSxNAdminIp,
6-
[string]$VolumeName,
7-
[string]$VolumeSize,
8-
[string]$DriveLetter
4+
[string]$SecretIdParam,
5+
[string]$FSxNAdminIpParam,
6+
[string]$VolumeNameParam,
7+
[string]$VolumeSizeParam,
8+
[string]$DriveLetterParam
99
)
1010
# "AWS secret ARN, e.g arn:aws:secretsmanager:us-east-1:111222333444:secret:MySecret-123456"
1111
$secretId=
@@ -18,11 +18,11 @@ $volSize=
1818
# "drive letter to use, e.g. d"
1919
$drive_letter=
2020

21-
$secretId = if ($SecretId) { $SecretId } else { $secretId }
22-
$ip = if ($FSxNAdminIp) { $FSxNAdminIp } else { $ip }
23-
$volName = if ($VolumeName) { $VolumeName } else { $volName }
24-
$volSize = if ($VolumeSize) { $VolumeSize } else { $volSize }
25-
$drive_letter = if ($DriveLetter) { $DriveLetter } else { $drive_letter }
21+
$secretId = if ($SecretIdParam) { $SecretIdParam } else { $secretId }
22+
$ip = if ($FSxNAdminIpParam) { $FSxNAdminIpParam } else { $ip }
23+
$volName = if ($VolumeNameParam) { $VolumeNameParam } else { $volName }
24+
$volSize = if ($VolumeSizeParam) { $VolumeSizeParam } else { $volSize }
25+
$drive_letter = if ($DriveLetterParam) { $DriveLetterParam } else { $drive_letter }
2626

2727
# Defaults
2828
$user="fsxadmin"

0 commit comments

Comments
 (0)