472,353 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

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 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.

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 to execute the above Linux command, getting the following error, and also attached a role to the EC2 with the below 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-access
  4. STS
  5. VM Import/Export

Is need to attach any more policies?
please can anyone help with this issue to get resolve.

3 Weeks Ago #1
0 3346

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

Similar topics

by: Xavier MT | last post by:
Hi, I have a problem if somebody can help I appreciate it My VS.NET seemed to work fine and all of a sudden I started to get the "error creating...
by: viditm | last post by:
Hi I keep getting the error "Error Creating Windows Handle" in my application and different places in the code. This occurs only to certain users....
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: Arne | last post by:
Hi, I keep getting "Error creating window handle." now and then while running my C# application. I've tried to figure out why, but I'm stuck. ...
by: Vidit | last post by:
Hi I keep getting the error "Error Creating Windows Handle" in my application and different places in the code. This occurs only to certain...
by: ctiggerf | last post by:
I was hopeing someone could help me out here. Been stumped on this one all day. This function 1. Checks uploaded files. 2. Creates two...
by: =?Utf-8?B?Z3JlZw==?= | last post by:
I am trying to create an instance of a 3rd party COM component, and I'm getting an error. I've opened a ticket with this vendor as well, but I...
by: xuki | last post by:
Hi every one! I need your help to solve this problems. I'm trying to creat a wsdl file to a webservice but i'm getting an erros. "Error...
by: Rajaganesh | last post by:
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...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
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: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.