简体   繁体   English

AWS Datapipeline启动停止EC2实例

[英]aws datapipeline start stop ec2 instances

this example: https://aws.amazon.com/premiumsupport/knowledge-center/stop-start-ec2-instances/ does not seem to work. 此示例: https : //aws.amazon.com/premiumsupport/knowledge-center/stop-start-ec2-instances/似乎不起作用。 I followed the example and the pipeline is always canceled. 我按照该示例进行操作,并且管道始终被取消。 There are no logs created, i did set up logging. 没有创建日志,我确实设置了日志。 the only "error message" i could find is. 我唯一能找到的“错误信息”是。 Error MessageUnable to create resource for @Ec2Instance_2017-06-07T09:58:49 due to: No subnets found for the default VPC 'vpc-f7dxxxx'. 错误消息由于以下原因而无法为@ Ec2Instance_2017-06-07T09:58:49创建资源:未找到默认VPC'vpc-f7dxxxx'的子网。 Please specify a subnet. 请指定一个子网。 (Service: AmazonEC2; Status Code: 400; Error Code: MissingInput; Request ID: ebeeae6d-9537-4627-8a56-e832999a1940) (服务:AmazonEC2;状态代码:400;错误代码:MissingInput;请求ID:ebeeae6d-9537-4627-8a56-e832999a1940)

All i am trying to do is execute a aws ec2 start-instances aws cli command as outlined in the example. 我要做的只是执行示例中概述的aws ec2 start-instances aws cli命令。 the instances do exist, they are in a "stopped" state. 实例确实存在,它们处于“停止”状态。 Has anyone been successful in setting up a pipeline to start and stop existing instances? 有没有人成功建立了一个管道来启动和停止现有实例? How did you do it? 你是怎么做到的? Thanks for the help 谢谢您的帮助

yes, that was it. 是的,就是这样。 after you finish going through the example you need to look at the pipeline and edit it. 完成示例之后,您需要查看管道并进行编辑。 Look for the EC2Resource area. 查找EC2Resource区域。 Click on it. 点击它。 then add a subnet. 然后添加一个子网。 place the micro instance in the same subnet as the ec2 instances you need to start or stop. 将微型实例与您需要启动或停止的ec2实例放置在同一子网中。 The example does not address this 该示例未解决此问题

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM