amazon-ec2 - 如何使用 AWS CloudFormation 创建 Amazon VPC?

标签 amazon-ec2 amazon-web-services scalability vpc aws-cloudformation

我目前正在使用 AWS CloudFormation对于我的申请。现在我可以自动缩放实例。现在,我想把所有东西都放在Amazon VPC上。我们可以使用 CloudFormation 创建 VPC 吗?当模板中有 ELB 时,我们如何通过 CloudFormation 管理弹性 IP 地址?我在AWS CloudFormation Sample Templates上找到了VPC相关的示例,但它仅将资源配置到现有 VPC 中,不会在模板中创建新的 VPC。

最佳答案

更新

pointed out by Jeff已经 (+1),AWS 刚刚宣布 AWS CloudFormation Support for Creating VPC Resources截至 2012 年 4 月 25 日,弥补了其初始 VPC 支持中缺失的部分:

We are excited to announce that AWS CloudFormation now supports the creation of Amazon Virtual Private Cloud (VPC) resources. [...]

Now, you can create new Virtual Private Clouds (VPC), subnets, gateways, network ACLs, routes and route tables using CloudFormation templates. [...]

[...] A CloudFormation can now fully represent your VPC configuration along with all the resources needed to run your application in the VPC.

请参阅 Jeff Barr 的介绍性帖子 AWS CloudFormation Can Now Create Virtual Private Clouds了解更多详细信息和示例。特别是AWS CloudFormation Sample Templates还提供两个新的示例模板[...]来帮助您入门:


初步回答

我不认为创建 Amazon VPCAWS CloudFormation已经支持。

虽然AWS刚刚宣布AWS CloudFormation Support For VPC实际上,截至 2012 年 2 月 12 日,这仅涵盖现有资源类型:

All resource types such as Amazon EC2 instances, security groups and Elastic IP addresses, Elastic Load Balancers, Auto Scaling Groups and Amazon RDS Database instances can now be deployed into any existing Amazon VPC using CloudFormation templates. The templates allow you to run multi-tier web applications and corporate applications in a private network. With Amazon VPC and CloudFormation, you can easily control which resources you want to expose publicly and which ones should be private.

值得注意的是,Amazon VPC 并未出现在此列表中,这与它未在受支持的 AWS Resource Types Reference 中列出这一事实相符。要么。

关于amazon-ec2 - 如何使用 AWS CloudFormation 创建 Amazon VPC?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10103154/

相关文章:

java.io.IOException : The document has no pages. 在本地工作正常,但在 aws 中部署后无法工作

node.js - 如何在 ELB 内部设置 SSL 并与 ELB 外部的 Node 实例通信

c - gcc 根据其版本创建不同的文件夹

amazon-web-services - 在 AWS 用户名和非 identity_id 下的 S3 中的 AWS Amplify 存储

performance - 解决可扩展性

node.js - 如何使用 docker 正确部署和扩展应用程序

ssh - 没有密码的CentOS scp无法正常工作

linux - 在 AWS AMI 服务器上记录 wordpress 错误

amazon-web-services - 将现有的EC2实例附加到弹性beantalk

css - 什么样的背景图像尺寸适合每台显示器的页面尺寸?