user3744067
user3744067

Reputation: 19

AWS Cloud Formation template to create an Image of an EC2 Instance?

Is it possible to create an AMI to Image on an EC2 instance from a Cloud Formation Template?

I have searched for all the resource types for AWS Cloud Formation but couldn't find one for AMI.

Upvotes: 0

Views: 1774

Answers (1)

Naveen Vijay
Naveen Vijay

Reputation: 16482

No it is not possible.

Technical Speaking Bundling Image is a process and Not a resource

Creation of AMI would be achieved by a process called as AMI Bundling [ec2-bundle-image]. Apparently using CloudFormation you can set up the infra ( AWS Components and align them in to a VPC etc.)

Below list of the EC2 based resources you do with CloudFormation.

  • AWS::EC2::CustomerGateway
  • AWS::EC2::DHCPOptions
  • AWS::EC2::EIP
  • AWS::EC2::EIPAssociation
  • AWS::EC2::Instance
  • AWS::EC2::InternetGateway
  • AWS::EC2::NetworkAcl
  • AWS::EC2::NetworkAclEntry
  • AWS::EC2::NetworkInterface
  • AWS::EC2::NetworkInterfaceAttachment
  • AWS::EC2::Route
  • AWS::EC2::RouteTable
  • AWS::EC2::SecurityGroup
  • AWS::EC2::SecurityGroupEgress
  • AWS::EC2::SecurityGroupIngress
  • AWS::EC2::Subnet
  • AWS::EC2::SubnetNetworkAclAssociation
  • AWS::EC2::SubnetRouteTableAssociation
  • AWS::EC2::Volume
  • AWS::EC2::VolumeAttachment
  • AWS::EC2::VPC
  • AWS::EC2::VPCDHCPOptionsAssociation
  • AWS::EC2::VPCGatewayAttachment
  • AWS::EC2::VPNConnection
  • AWS::EC2::VPNConnectionRoute
  • AWS::EC2::VPNGateway

Upvotes: 1

Related Questions