File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Management-Utilities/ec2-user-data-iscsi-create-and-mount Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 11< powershell>
22# This script is used to install and configure FSx for Windows File Server
33param (
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"
You can’t perform that action at this time.
0 commit comments