Skip to content

Commit

Permalink
fix technical solution
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao201208 committed May 13, 2024
1 parent 8ae8d95 commit 5feee03
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ Parameters:
en: Instance Type
zh-cn: 实例规格
Description:
zh-cn: 本方案会创建一个抢占式实例,并且自动部署uwsgi服务
zh-cn: 本方案会创建一个抢占式实例。
en: >-
This solution will create a spot instance and automatically deploy a
uwsgi service.
This solution will create a spot instance.
Default: ecs.c7.large
InstancePassword:
NoEcho: true
Expand Down Expand Up @@ -57,7 +56,7 @@ Parameters:
Label:
en: Website domain name
zh-cn: 网站域名
AssociationProperty: 'ALIYUN::Domain::DomainName'
AssociationProperty: 'ALIYUN::DomainName'
Description:
en: >-
Please enter the subdomain name under the current account, such as example.aliyun.com.
Expand Down Expand Up @@ -186,7 +185,7 @@ Resources:
SpotStrategy: SpotAsPriceGo
Password:
Ref: InstancePassword
InstallUwsgi:
InstallJava:
Type: 'ALIYUN::ECS::RunCommand'
Properties:
InstanceIds:
Expand Down Expand Up @@ -352,41 +351,26 @@ Resources:
Ref: RdsInstance
DBName: applets
Outputs:
WebUrl:
DatabaseName:
Description:
zh-cn: Web 访问地址(Ip)
en: The Addresses of Web(Ip).
zh-cn: 数据库名称
en: The name of database.
Value:
'Fn::Sub':
- 'http://${ServerAddress}'
- ServerAddress:
'Fn::Select':
- 0
- 'Fn::GetAtt':
- EcsInstance
- PublicIps
WebDomain:
Condition: DnsRecord
Ref: RdsDatabase
DatabaseUserName:
Description:
zh-cn: 数据库用户名。
en: The name of database user.
Value:
Ref: DBUserName
DatabaseEndpoint:
Description:
zh-cn: Web 访问地址(域名)
en: The Addresses of Web(Domain).
zh-cn: 数据库链接地址
en: The connection address of database.
Value:
Fn::Sub:
- 'http://${DomainName}'
- DomainName:
Fn::If:
- DomainPrefixIsNull
- Fn::GetJsonValue:
- DomainName
- Ref: DomainName
- Fn::Join:
- '.'
- - Fn::GetJsonValue:
- DomainPrefix
- Ref: DomainName
- Fn::GetJsonValue:
- DomainName
- Ref: DomainName
Fn::GetAtt:
- RdsInstance
- InnerConnectionString
EcsLoginAddress:
Description:
zh-cn: ECS登录地址。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Parameters:
Label:
en: Website domain name
zh-cn: 网站域名
AssociationProperty: 'ALIYUN::Domain::DomainName'
AssociationProperty: 'ALIYUN::DomainName'
Description:
en: >-
Please enter the subdomain name under the current account, such as example.aliyun.com.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Parameters:
Label:
en: Website domain name
zh-cn: 网站域名
AssociationProperty: 'ALIYUN::Domain::DomainName'
AssociationProperty: 'ALIYUN::DomainName'
Description:
en: >-
Please enter the subdomain name under the current account, such as example.aliyun.com.
Expand Down

0 comments on commit 5feee03

Please sign in to comment.