Skip to content

Commit

Permalink
fix solution issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao201208 committed Apr 2, 2024
1 parent 1309fa9 commit 4281e83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 40 deletions.
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

0 comments on commit 4281e83

Please sign in to comment.