如何使用 AWS Toolkit 中的 AWS CloudFormation 定位“小型”客户ASP.NET 的实例
我使用 AWS Cloudformation 在 EC2 上部署了 ASP.NET。在 Visual Studio 中,AWS Toolkit 添加了“发布到 CloudFormation”菜单项。这将使用选择的计算机(例如针对 Win 2008 R2 的微型计算机和大型计算机)创建所需的 Cloudformation 模板。由于我将使用“小型”实例(比 Micro 更强大,但比 Large 更便宜,并使用 Visual Studio 中 Cloudformation 的便利性,因此我尝试使用 AMI 复制生成的模板并将其用作 Cloudformation 的新模板它以 Win 2008 为目标,因此在 32 位小型计算机上运行。但是,由于模板引用动态创建的配置文件项,
因此在 AWS Cloudformation 上使用 AWS Toolkit 中的小型实例的最佳方法是什么?必须设置实例等
I've deployed an ASP.NET on EC2 using AWS Cloudformation. In Visual Studio, the AWS Toolkit adds the 'Publish to CloudFormation' menu item. This creates the required Cloudformation template using a choice of machines, such as Micro and Large, targeting Win 2008 R2. As I would use a 'small' instance (more powerful than Micro but cheaper than Large, and use the convenience of Cloudformation from Visual Studio, I tried copying the template that is generated and use this as a new template for Cloudformation, using an AMI that targets Win 2008 and so runs on a 32bit small machine. However I get an error as the template references config file items created on the fly.
What is the best way to use the small instance from within AWS Toolkit on AWS Cloudformation, without having to set up instances, etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
同时,通过引入 64 位 Ubiquity 解决了以前的限制,请参阅 EC2 更新:新中型实例、64 位 Ubiquity、SSH 客户端:
AWS Toolkit for Visual Studio 支持这一重大改进垂直扩展也已实现,因此您可以简单地发布到 CloudFormation,同时定位您选择的 Amazon EC2 实例类型(包括 m1.small)。
虽然这应该已经涵盖了您的使用案例,但值得一提的是,AWS 还在 上发布了支持此操作系统的新专用 AMI具体来说,AWS CloudFormation,即 Microsoft Windows Server 2008 R2 - CloudFormation 基础,其中包含 Microsoft Windows Server 2008 R2 SP1,旨在用于 Amazon EBS 支持的 AMI 上的 CloudFormation,以便构建您自己的 AMI嗯>。
This former limitation has meanwhile been remedied by the introduction of 64-bit Ubiquity, see EC2 Updates: New Medium Instance, 64-bit Ubiquity, SSH Client:
The AWS Toolkit for Visual Studio supports this significant improvement to vertical scaling as well already, so you can simply Publish to CloudFormation while targeting an Amazon EC2 instance type of your choice, including m1.small.
While this should already cover your use case, it may be worth mentioning that AWS also released a new dedicated AMI supporting this OS on AWS CloudFormation specifically, namely the Microsoft Windows Server 2008 R2 - Base for CloudFormation, which contains Microsoft Windows Server 2008 R2 with SP1 intended for CloudFormation on an AMI backed by Amazon EBS in order to to build your own AMIs.
不可能,因为 Cloudformation 需要 Win 2008 R2 并且小型实例为 32 位
not possible as Cloudformation requires Win 2008 R2 and the small instance is 32bit