ALIYUN::CS::App__资源列表_资源编排-阿里云
ALIYUN::CS::App 类型可用于创建基于 ALIYUN::CS::Cluster 的应用
语法
{
"Type" : "ALIYUN::CS::App",
"Properties" : {
"Name" : String,
"Ca" : String,
"ClusterId" : String,
"Environment" : Map,
"Cert" : String,
"Version" : String,
"MasterUrl" : String,
"Key" : String,
"Template" : String,
"Description" : String
}
}
属性
属性名称 | 类型 | 必须 | 描述 | 约束 |
Name | string | 是 | 指定应用的名称 | |
ClusterId | string | 是 | 指定集群的 ID | |
MasterUrl | string | 是 | 指定集群的主 URL 地址 | |
Ca | string | 否 | 指定集群的 CA 证书 | |
Environment | map | 否 | 指定环境变量 | |
Cert | string | 否 | 指定集群的客户端证书 | |
Version | string | 否 | 指定应用的版本号 | |
Key | string | 否 | 指定集群的客户端主键 | |
Template | string | 否 | 指定部署 Docker 应用的模版 | |
Description | string | 否 | 指定应用的描述 | 长度为2-256个字符,默认为空 |
返回值
Fn::GetAtt
- Endpoints 访问应用的域名
示例
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"App": {
"Properties": {
"Ca": {
"Fn::GetAtt": [
"MyCluster",
"Ca"
]
},
"Cert": {
"Fn::GetAtt": [
"MyCluster",
"Cert"
]
},
"ClusterId": {
"Fn::GetAtt": [
"MyCluster",
"ClusterId"
]
},
"Key": {
"Fn::GetAtt": [
"MyCluster",
"Key"
]
},
"MasterUrl": {
"Fn::GetAtt": [
"MyCluster",
"MasterUrl"
]
},
"Name": "ngix",
"Template": {"Fn::Join": ["\n", [
"mysql:",
" environment:",
" - MYSQL_MAJOR=5.6",
" - MYSQL_ROOT_PASSWORD=password",
" expose:",
" - 3306/tcp",
" image: 'registry.aliyuncs.com/acs-sample/mysql:5.6'",
" labels:",
" aliyun.routing.port_3306: nnn;https://nn.abc.com",
" aliyun.scale: '3'",
" restart: always",
" volumes:",
" - /var/lib/mysql"
]]}
},
"Type": "ALIYUN::CS::App"
},
"MyCluster": {
"Properties": {
"InstanceType": "ecs.s1.small",
"Name": "mysqlcluster",
"Password": "Test1234",
"Size": 3
},
"Type": "ALIYUN::CS::Cluster"
}
},
"Outputs": {
"Endpoints": {
"Description": "Endpoints of the app.",
"Value": {
"Fn::GetAtt": [
"App",
"Endpoints"
]
}
}
}
}
最后更新:2016-12-20 17:12:51
上一篇:
ALIYUN::ECS::VSwitch__资源列表_资源编排-阿里云
下一篇:
ALIYUN::CS::Cluster__资源列表_资源编排-阿里云
获取订阅属性__主题使用帮助_控制台使用帮助_消息服务-阿里云
WordCount示例__示例程序_MapReduce_大数据计算服务-阿里云
便宜易用__产品优势_产品简介_云数据库 RDS 版-阿里云
在Header中包含签名__访问控制_API 参考_对象存储 OSS-阿里云
跨主机互联的容器网络__网络管理_用户指南_容器服务-阿里云
子用户登录常见问题__常见问题_产品使用问题_访问控制-阿里云
文件导入任务配置__快速入门_数据传输-阿里云
Sqoop 作业配置__作业_用户指南_E-MapReduce-阿里云
错误日志__应用操作接口_API参考手册_开放搜索-阿里云
ALIYUN::SLB::LoadBalancer__资源列表_资源编排-阿里云
相关内容
常见错误说明__附录_大数据计算服务-阿里云
发送短信接口__API使用手册_短信服务-阿里云
接口文档__Android_安全组件教程_移动安全-阿里云
运营商错误码(联通)__常见问题_短信服务-阿里云
设置短信模板__使用手册_短信服务-阿里云
OSS 权限问题及排查__常见错误及排除_最佳实践_对象存储 OSS-阿里云
消息通知__操作指南_批量计算-阿里云
设备端快速接入(MQTT)__快速开始_阿里云物联网套件-阿里云
查询API调用流量数据__API管理相关接口_API_API 网关-阿里云
使用STS访问__JavaScript-SDK_SDK 参考_对象存储 OSS-阿里云