
Ensure that you also convert the
*.pem
file to the
*.ppk
format and configure PuTTY for
establishing an SSH connection.
Ensure that you updated AWS details using the AWS CLI. For more information, see
on page 47.
Procedure
1. Start a command line interpreter on a computer with the installed AWS CLI.
2. Run the following command to check whether the S3 bucket is ready to use:
aws s3 ls
The system displays the S3 bucket that you created.
3. To view the content of the S3 bucket, run the
aws s3 ls s3://<nameofbucket>
command.
4. To import the ova for conversion, run the following command:
>aws ec2 import-image --cli-input-json "{ \"Description\": \"<server.ova>\",
\"DiskContainers\": [ { \"Description\": \"<text description of task>\",
\"UserBucket\": { \"S3Bucket\": \"<your_bucket_name>\", \"S3Key\" : \"<server.ova>
\" } } ]}"
The system displays the Status and the ImportTaskId parameters.
In the following example, when the system converts the CM Simplex OVA, ImportTaskId is
import-ami-ffmanv5x
.
{
"Status": "active",
"Description": "<version>-aws-001.ova",
"Progress": "2",
"SnapshotDetails": [
{
"UserBucket": {
"S3Bucket": "<version>-dev",
"S3Key": "<version>-aws-001.ova"
},
"DiskImageSize": 0.0
}
],
"StatusMessage": "pending",
"ImportTaskId": "import-ami-fftlelct"
}
5. To check the status of the import image, run the following command:
aws ec2 describe-import-image-tasks --cli-input-json "{ \"ImportTaskIds\":
[\"<Your_ImportTaskId>\"], \"NextToken\": \"abc\", \"MaxResults\": 10 } "
The conversion process takes up to 30 minutes. You can run the above command
repeatedly.
In the following example, the process is preparing the AMI and is 76% complete:
IMPORTIMAGETASKS x86_64 CM-Simplex-07.1.0.0.xxx-aws-001.ova import-ami-ffgji45r
BYOL Linux 76 active preparing ami
The output format varies depending on the selection of the text or JSON format on the
AWS CLI configuration.
Amazon Web Services deployments
October 2018
Deploying the Avaya Aura
®
Web Gateway
51