Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix technical solution #245

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading