简体   繁体   English

如何在 Cloudformation 模板上为 AWS EC2 实例设置 MemorySize?

[英]How to set MemorySize for AWS EC2 Instance on Cloudformation Template?

From AWS Cloudformation documentation, I have been only seeing one for a Lambda function, but I am not seeing any for EC2 instances.从 AWS Cloudformation 文档中,我只看到一个 Lambda function,但我没有看到任何 EC2 实例。 How to set up your template to make your instance have a specific RAM Size rather than the 512MB which is by default.如何设置您的模板以使您的实例具有特定的 RAM 大小,而不是默认的 512MB。

You can't set it up.你不能设置它。 Amount of RAM and vCPU is tide to instance type. RAM 和 vCPU 的数量取决于实例类型。 For example you can check here https://www.ec2instances.info/ which instance type would have enough RAM and vCPUs for your needs.例如,您可以在此处查看https://www.ec2instances.info/哪种实例类型有足够的 RAM 和 vCPU 来满足您的需求。

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

相关问题 EC2 实例类型的 AWS Cloudformation 模板错误 - AWS Cloudformation Template Error with EC2 Instance Types 使用CloudFormation模板设置AWS EC2实例主机名 - Setting AWS EC2 instance hostname using CloudFormation template 用于 ec2 实例中的 Spot 请求的 aws cloudformation 模板 - aws cloudformation template for spot request in ec2 instance 如何在AWS :: EMR :: Cluster CloudFormation模板中指定Ec2实例属性? - How to specify Ec2 Instance Attributes in a AWS::EMR::Cluster CloudFormation Template? 在AWS CloudFormation模板中,如何将EC2实例放置在Spot Fleet确定的子网中? - In an AWS CloudFormation template, how can I place an EC2 instance in the subnet determined by a Spot Fleet? CloudFormation模板以启动EC2实例 - CloudFormation template to bring up EC2 instance 如何在 Cloudformation 模板中创建可变数量的 EC2 实例资源? - How to create variable number of EC2 instance resources in Cloudformation template? 具有EC2实例的AWS Cloudformation模板具有IAM角色以终止该Cloudformation堆栈 - AWS Cloudformation template with EC2 instance that has IAM role to terminate that Cloudformation stack 无法使用CloudFormation模板SSH进入EC2实例 - Not able to SSH into the EC2 Instance with CloudFormation Template 在CloudFormation模板中命名EC2实例? - Name an EC2 Instance in the CloudFormation template?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM