【发布时间】:2021-12-26 08:23:32
【问题描述】:
抱歉,我是 Terraform 的新手。
我使用 Terraform 成功创建了 AWS 实例。 然后我在 AWS Web 管理控制台中关闭实例。
如何使用 Terraform 启动实例?
【问题讨论】:
标签: amazon-web-services terraform terraform-provider-aws
抱歉,我是 Terraform 的新手。
我使用 Terraform 成功创建了 AWS 实例。 然后我在 AWS Web 管理控制台中关闭实例。
如何使用 Terraform 启动实例?
【问题讨论】:
标签: amazon-web-services terraform terraform-provider-aws
您必须使用 local-exec 来运行 AWS CLI 的 start-instances。
【讨论】:
您可以使用 aws_instance terraform 资源的 instance_type 值。
instance_type : (Optional) The instance type to use for the instance.
Updates to this field will trigger a stop/start of the EC2 instance.
【讨论】: