简体   繁体   English

为单个服务器创建基本的AWS CloufFormation模板

[英]Create basic AWS CloufFormation Template for single server

I have no experience with AWS CloudFormation Templates so I apologize for the incredibly simple question which I can't find an answer to because I think it is so basic. 我没有使用AWS CloudFormation模板的经验,因此我为这个非常简单的问题表示歉意,因为我认为它是如此基本,所以找不到答案。

I am trying to create a cloudformation template for a single server in AWS Test Drive. 我正在尝试为AWS Test Drive中的单个服务器创建cloudformation模板。 Here is the criteria: 这是标准:

  • Deploy AMI 部署AMI
  • Force m3-large (no other sizes available) 强制m3大(无其他尺寸)
  • Will be running in a single location (no other location available) 将在单个位置运行(没有其他可用位置)
  • Utilize existing security group 利用现有的安全组
  • Get a public IP Spit back the public DNS or public IP address 获取公共IP吐回公共DNS或公共IP地址

Everything I've looked up wants to be more complex than I think I need and I can't figure out which pieces are needed and which ones can be taken out. 我所查找的所有内容都想比我想的要复杂,我无法弄清楚需要哪些部件以及可以取出哪些部件。 What is the bare minimum to deploy a single ami with no customization (all customization is performed inside the VM during bootup. There should also be no options for other data center locations or other sizes. All templates I've seen have a bunch of options for multiple data centers and multiple sizes and sets up a security group. 部署不带自定义功能的单个AMI的最低要求是什么(在启动过程中,所有自定义操作都在VM内执行。其他数据中心位置或其他大小也应该没有其他选择。我见过的所有模板都有很多选择)用于多个数据中心和多个规模,并设置一个安全组。

I appreciate the links to the AWS site however I have already been there and this is one of the templates that has too much info and I don't know what I can change\\exclude. 我很欣赏到AWS网站的链接,但是我已经去过那里,这是信息太多的模板之一,我不知道可以更改/排除什么。

Thanks for your help. 谢谢你的帮助。

Amazon Web Services documentation includes a single-server CloudFormation template that simply creates a Linux EC2 instance and accompanying security group. Amazon Web Services文档包括一个单服务器CloudFormation模板,该模板仅创建Linux EC2实例和随附的安全组。 This one is based in US West 2 (Oregon), but does not appear to be region-specific and should work in any region. 该服务器位于美国西部2号(俄勒冈州),但似乎不是特定于区域的,并且应在任何区域使用。

https://s3-us-west-2.amazonaws.com/cloudformation-templates-us-west-2/EC2InstanceWithSecurityGroupSample.template https://s3-us-west-2.amazonaws.com/cloudformation-templates-us-west-2/EC2InstanceWithSecurityGroupSample.template

This sample can be found along with others here: 可以在这里与其他示例一起找到该示例:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/sample-templates-services-us-west-2.html http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/sample-templates-services-us-west-2.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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