472,338 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,338 software developers and data experts.

Getting error while import-snapshot an VHD from AWS S3 to EC2

Dear Experts!

Getting error while import-snapshot an VHD from AWS S3 to EC2

I have a VHD file and it contains Windows OS, it was uploaded to the AWS S3 bucket. So I'm trying to create an import-snapshot from AWS S3 to EC2 by using AWS CLI and by using the below Linux command.

Expand|Select|Wrap|Line Numbers
  1. aws ec2 import-snapshot --disk-container "Format=VHD,UserBucket={S3Bucket=<s3_bucket_name>,S3Key=<S3_Key_of_vhd_file>}" --output json

When I'm trying with the above Linux command, getting the below error, and also I have attached a role with the following permissions/policies.

Expand|Select|Wrap|Line Numbers
  1. An error occurred (AuthFailure) when calling the ImportSnapshot operation: AWS was not able to validate the provided access credentials

Attached Policies:
  1. S3 Full Access
  2. EC2 Full Access
  3. KMS Full Acess
  4. VM import/export
  5. STS

Is need to attach any more policies?
Please can anyone help/suggest getting resolve this issue?

3 Weeks Ago #1
0 4062

Sign in to post your reply or Sign up for a free account.

Similar topics

by: IMS.Rushikesh | last post by:
Hi Friends, My work is stuck up because of this unresolvable and unbelievable Error. I'm trying to Serialize my Class object using...
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following...
by: Archana | last post by:
Hi all, I am having application where i am downloading xml content using webrequest. my code is as below HttpWebRequest lWebRequest =...
by: jonny | last post by:
Went from using Visual Web Develop express to Visual Studio 2005 and getting error when trying to open project. Error message: "One or more...
by: vikas251074 | last post by:
I am getting error while entry in userid field. When user enter his user id, an event is fired immediately and user id is verified using AJAX method....
by: sony.m.2007 | last post by:
Hi, When i try to set a value for a session variable I'm getting a object refence not set error I tried two methods as below...
by: bandy | last post by:
Hi there sorry If I posted this thread under wrong head. When I am trying to run my site I am getting error as Internal Server Error, but...
by: CD Tom | last post by:
I've had code in my application for quite some time and now I'm getting error 438. This is the code Print fHandleFile(app_path + "\shb.pdf",...
by: Rajaganesh | last post by:
Hi Guys, 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...
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.