An IT girl on weekday; A bibliophile, binge watcher, amateur painter by weekend; Wants to give a shot to anything and everything in life.
OVA TO AWS AMI CONVERSION

There are cases, were you have to convert on-prem OVA to AWS AMI.

Below are steps to convert an OVA to AWS AMI:

  1. Upload the file to EC2 instance.
  2. Unzip the file
    tar xvf xxxxxxx_xxx_xx.ova
  3. Copy the .vmdk file to S3 bucket
  4. Create a file in ec2 — conversion.json

[{

“Description”: “Convert OVA to AMI”,

“Format”: “vmdk”,

“UserBucket”: {

“S3Bucket”: “s3bucketname”,

“S3Key”: “xxxxxxx_xxx_xx.vmdk”

}}]

5. Execute —

aws ec2 import-image — description “Convert OVA to AMI” — disk-containers file://conversion.json

6. Execute —

aws ec2 describe-import-image-tasks — import-task-ids import-ami-xxxx

Let me know in comments if you have any issues :)

“errorMessage”: “‘Connect” object has no attribute ‘describe_hours_of operation’”,

“errorType”: “AttributeError”

All AWS lambda developer would have come across this error at least once.

To solve this error:

  1. Check if any spelling mistake was made while writing the API . If so, write the correct API.
  2. Check if the class that you found is coming from boto3.client or boto3.resource
  3. Check if the API is in the preview release —
    “This API is in preview release for Amazon Connect and is subject to change.”
Source : AWS API

If so I guess you need to wait :)

Funny Story: I spent almost 2 hours, trying to resolve this error just because I didn't notice the preview release notice. Hahaha :) Hope this post helps you save sometime :)

Soumya's Yellow Wall

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store