简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM