gpt4 book ai didi

amazon-web-services - 使用Terraform启动AWS保留实例

转载 作者:行者123 更新时间:2023-12-04 11:00:27 25 4
gpt4 key购买 nike

我想长时间创建保留实例,例如一年的运行时间。有人知道Terraform是否允许在AWS中创建此类保留实例吗?

现在,我可以在Terraform文档中找到任何内容。

最佳答案

AWS中的预留实例以先到先得的方式工作。如果您创建任何符合保留实例标准的按需实例,则它将首先使用您的保留实例配额。

AWS docs也对此进行了解释:

Reserved Instances are automatically applied to running On-Demand Instances provided that the specifications match. If you have no running On-Demand Instances that match the specifications of your Reserved Instance, the Reserved Instance is unused until you launch an instance with the required specifications.

If you're launching an instance to take advantage of the billing benefit of a Reserved Instance, ensure that you specify the following information during launch:

  • Platform: You must choose an Amazon Machine Image (AMI) that matches the platform (product description) of your Reserved Instance. For example, if you specified Linux/UNIX, you can launch an instance from an Amazon Linux AMI.

  • Instance type: Specify the same instance type as your Reserved Instance; for example, t2.large.

  • Availability Zone: If you purchased a Reserved Instance for a specific Availability Zone, you must launch the instance into the same Availability Zone. If you purchased a regional Reserved Instance, you can launch your instance into any Availability Zone.

  • Tenancy: The tenancy of your instance must match the tenancy of the Reserved Instance; for example, dedicated or shared. For more information, see Dedicated Instances.

关于amazon-web-services - 使用Terraform启动AWS保留实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48751593/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com