774
阿里云
ALIYUN::ROS::WaitConditionHandle__资源列表_资源编排-阿里云
ALIYUN::ROS::WaitConditionHandle 类型可用于创建在 UserData 执行过程中发送消息和接收消息的实例
语法
{
"Type" : "ALIYUN::ROS::WaitConditionHandle",
"Properties" : {
}
}
返回值
Fn::GetAtt
- CurlCli 该资源产生一个 curl 命令,通过该命令发送 UserData 执行的结果或者状态到 ROS
示例
{
"ROSTemplateFormatVersion" : "2015-09-01",
"Resources" : {
"WebServer": {
"Type": "ALIYUN::ECS::Instance",
"Properties": {
"ImageId" : "centos6u5_64_40G_cloudinit_20160728.raw",
"InstanceType": "ecs.s2.large",
"SecurityGroupId": "sg-94q49gota",
"IoOptimized": "optimized",
"VSwitchId": "vsw-94vdvonyi",
"VpcId": "vpc-949uzr8c9",
"SystemDiskCategory": "cloud_ssd",
"UserData": {"Fn::Replace": [
{"ros-notify": {"Fn::GetAtt": ["WaitConHandle", "CurlCli"]}},
{"Fn::Join": ["", [
"#!/bin/shn",
"mkdir ~/test_rosn",
"print hello > ~/1.txtn",
"ros-notify n",
"ros-notify -d '{\"id\" : \"1\"}'n"
]]}]}
}
},
"WaitConHandle": {
"Type": "ALIYUN::ROS::WaitConditionHandle"
},
"WaitCondition": {
"Type": "ALIYUN::ROS::WaitCondition",
"Properties": {
"Handle": {"Ref": "WaitConHandle"},
"Timeout": 60,
"Count": 2
}
},
},
"Outputs": {
"InstanceId": {
"Value" : {"Fn::GetAtt": ["WebServer","InstanceId"]}
},
"PublicIp": {
"Value" : {"Fn::GetAtt": ["WebServer","PublicIp"]}
},
"CurlCli" : {
"Value" : { "Fn::GetAtt": ["WaitConHandle", "CurlCli"] }
},
"Data" : {
"Value" : { "Fn::GetAtt": ["WaitCondition", "Data"] }
}
}
}
最后更新:2016-12-20 17:12:51
上一篇:
ALIYUN::ROS::WaitCondition__资源列表_资源编排-阿里云
下一篇:
ALIYUN::SLB::VServerGroup__资源列表_资源编排-阿里云
阿里云总裁胡晓明:云还在1.0时代 中国市场阿里云还没对手
编辑角色__账号管理类 API_Open API 参考_企业级分布式应用服务 EDAS-阿里云
数据推送__性能篇_最佳实践_开放搜索-阿里云
控制台快速开始__快速入门_批量计算-阿里云
4.1 Select语句基本语法__第四章 DML_使用手册_分析型数据库-阿里云
峰值690G!阿里云协助警方破获国内最大黑客攻击案
哪些情况会导致域名交易账号被冻结?__域名交易_域名-阿里云
Web控制台介绍__使用指南_DataHub实时数据通道_大数据计算服务-阿里云
短信服务(Short Message Service)服务条款__服务协议条款_短信服务-阿里云
iOS SDK手册__SDK手册_HTTPDNS-阿里云
相关内容
常见错误说明__附录_大数据计算服务-阿里云
发送短信接口__API使用手册_短信服务-阿里云
接口文档__Android_安全组件教程_移动安全-阿里云
运营商错误码(联通)__常见问题_短信服务-阿里云
设置短信模板__使用手册_短信服务-阿里云
OSS 权限问题及排查__常见错误及排除_最佳实践_对象存储 OSS-阿里云
消息通知__操作指南_批量计算-阿里云
设备端快速接入(MQTT)__快速开始_阿里云物联网套件-阿里云
查询API调用流量数据__API管理相关接口_API_API 网关-阿里云
使用STS访问__JavaScript-SDK_SDK 参考_对象存储 OSS-阿里云