Getting error while creating import-snapshot with VHD from AWS S3 to EC2
I have a VHD file with Windows OS, it was uploaded to the AWS S3 bucket.
So I'm trying to create an import-snapshot of the VHD file from AWS S3 to EC2 by using AWS CLI with the below Linux command.
Code:
aws ec2 import-snapshot --disk-container "Format=VHD,UserBucket={S3Bucket=<s3_bucket_name>,S3Key=<S3_Key_of_vhd_file>}"