[英]How to power on AWS instance with Terraform
Sorry I am very new to Terraform.对不起,我对 Terraform 很陌生。
I create AWS instance with Terraform successfully.我成功地使用 Terraform 创建了 AWS 实例。 Then I power off the instance in AWS web management console.
然后我在 AWS Web 管理控制台中关闭实例。
How to power on the instance with Terraform?如何使用 Terraform 启动实例?
您必须使用local-exec来运行 AWS CLI 的start-instances 。
You can use the instance_type value of aws_instance terraform resource.您可以使用 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.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.