473,508 Members | 2,130 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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
  2.  

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.

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


Thanks
Rajaganesh
May 9 '23 #1
0 3963

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

Similar topics

0
2089
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 control message" In my aspx page I drag a...
1
12274
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. Its very random and cannot be reproduced in the...
3
1985
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 XmlSerialization. And at below line, I m getting "error File...
1
3897
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. What is the usual cause of this error ? The error...
3
8281
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 users. Its very random and cannot be reproduced in...
8
2813
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 resized images from each (a full size, and a...
4
8945
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 want to approach it from the C# .NET side to make...
1
2960
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 creating WSDL document:Error creating WSDL: no class...
0
4657
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 the AWS S3 bucket. So I'm trying to create an...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.