heeroyuy84
heeroyuy84

Reputation: 63

aws-cli (powershell) import-image Missing required parameter disk-images

I'm trying to import a vhd to s3 using the following command:

aws ec2 import-image --description "my image" --platform "windows"

The error generated is the following:

A client error (InvalidParameter) occurred when calling the ImportImage operation: Missing required parameter (disk-images)

The documentation doesn't mention disk-images. Is there an example of how this command should work?

Upvotes: 2

Views: 890

Answers (1)

gatorback
gatorback

Reputation: 1537

The example below indicates that you are missing a pointer to .json (configuration file): Example: import-image to create a new import image task.

import-image --description "Windows 2008 OVA" --disk-containers file://containers.json

CLI Options for 'import-image' command

Upvotes: 2

Related Questions