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 solution issue #208

Merged
merged 1 commit into from
Apr 2, 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 @@ -182,7 +182,7 @@ Resources:
systemctl enable nginx
cd stable-diffusion-webui/
sed -i 's|python|/workspace/miniconda/bin/python|g' run_taiyi.sh
nohup ./run_taiyi.sh &
nohup ./run_taiyi.sh > output.log 2>&1 &
Outputs:
EcsLoginAddress:
Description:
Expand Down
48 changes: 9 additions & 39 deletions documents/solution/database/data-transmission-from-ECS-to-RDS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ Parameters:
EngineVersion: '8.0'
DBInstanceStorageType: cloud_essd
Engine: MySQL
Category: HighAvailability
Default: mysql.n2m.small.2c
Category: Basic
Default: mysql.n2e.small.1
DBUserName:
Type: String
Description:
Expand Down Expand Up @@ -159,7 +159,7 @@ Resources:
Ref: Zone
DBInstanceDescription: Test for database migration
DBInstanceStorage: 20
Category: HighAvailability
Category: Basic
DBInstanceStorageType: cloud_essd
VSwitchId:
Ref: VSwitch
Expand All @@ -170,14 +170,9 @@ Resources:
- Auto
EngineVersion: '8.0'
SecurityIPList:
Fn::Join:
- ','
- - Fn::GetAtt:
- WebServer
- PrivateIp
- Fn::GetAtt:
- EIP
- EipAddress
Fn::GetAtt:
- WebServer
- PrivateIp
MasterUsername:
Ref: DBUserName
MasterUserPassword:
Expand All @@ -195,7 +190,7 @@ Resources:
Type: ALIYUN::ECS::Instance
Properties:
IoOptimized: optimized
ImageId: aliyun_3_x64_20G_alibase_20230629.vhd
ImageId: aliyun_3_x64_20G_alibase_
SecurityGroupId:
Ref: SecurityGroup
Password:
Expand Down Expand Up @@ -292,36 +287,11 @@ Resources:
Ref: Vpc
InstanceType:
Ref: EcsInstanceType
SystemDiskCategory: cloud_efficiency
AllocatePublicIP: false
SystemDiskCategory: cloud_essd
AllocatePublicIP: true
ZoneId:
Ref: Zone
EIP:
Type: ALIYUN::VPC::EIP
Properties:
Bandwidth: 50
InstanceChargeType: Postpaid
InternetChargeType: PayByTraffic
EIPAssociation:
Type: ALIYUN::VPC::EIPAssociation
Properties:
InstanceId:
Ref: WebServer
AllocationId:
Ref: EIP
DependsOn:
- WebServer
- EIP
Outputs:
ECSWordPressUrl:
Description: WordPress default address.
Value:
Fn::Join:
- ''
- - http://
- Fn::GetAtt:
- EIP
- EipAddress
ECSInstanceUser:
Description: Username and password for logging in to ECS instance
Value:
Expand Down
Loading