3 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hi There
To get the VolumeId use
$volume = New-ec2volume -AvailabilityZone $az -VolumeType $volumetype -size $size -Region $Region
Add-EC2Volume -InstanceId $InstanceId -VolumeID = $volume.Id
For determining the DeviceId for a Windows EC2 instance, see this article: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/device_naming.html
For Linux instances, see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html
0
Thank you. Is there a write-progrss indicator i can add or new-ec2volume. I noticed I had to do a start-sleep 5 before I can add the ec2volume otherwise i cannot see the volumeid
répondu il y a 2 ans
0
Check the below link for the script on how to create and attach EBS volume to EC2 instance
Create and attach EBS volume to already running EC2 instance with powershell
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 3 mois
- demandé il y a 19 heures
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 9 mois