We do not recommend using this action to register instances. The
complete registration operation has two primary steps, installing the
AWS OpsWorks agent on the instance and registering the instance with
the stack. RegisterInstance handles only the second step. You should
instead use the AWS CLI register command, which performs the entire
registration operation. For more information, see Registering an
Instance with an AWS OpsWorks Stack
看看这个:register_instance对于Boto3/OpsWork。注册实例有两个部分,Boto3只能完成第二部分。在
要在Lambda函数中运行CLI,请确保Lambda Exec角色具有执行OpsWork CLI的权限,并在python Lambda中调用类似以下内容:
查看OpsWorks CLI了解更多信息。在
相关问题 更多 >
编程相关推荐