Cloudformation template - unrecognised resource type

0

I have created ec2 instance and s3 bucket ...also have create a image of ec2 instance create a snapshot and saved to s3 bucket... Created ec2 ami resource type as AWS::EC2::Image whole running I am getting error as template formate incorrect unrecognised resource typ AWS::EC2::Image Please suggest a solution to create ami using cloudformat template

  • please accept the answer if it was useful for you

Seema
asked 24 days ago100 views
2 Answers
0

Here is a list of resources for Cloudformation AWS:EC2 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_EC2.html

there is no AWS::EC2::Image resource, that's why you get an error unrecognised resource type

If you need to create a new image via CloudFormation, consider using AWS::ImageBuilder::Image

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html

profile picture
EXPERT
answered 24 days ago
profile pictureAWS
EXPERT
reviewed 24 days ago
0

Hello.

The cause of the error is that the resource type "AWS::EC2::Image" does not exist.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_EC2.html

Currently, I think it is necessary to use ImageBuilder etc. to create an AMI with CloudFormation.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_ImageBuilder.html

ec2 instance create a snapshot and saved to s3 bucket

You mentioned that you saved the snapshot in an S3 bucket, but how exactly did you save it?
I think the snapshot data is stored in S3 managed by AWS, so I don't think it will be output to S3 managed by the user.
https://repost.aws/knowledge-center/ebs-copy-snapshot-data-s3-create-volume

profile picture
EXPERT
answered 24 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions