From 4281e83dcaf7eee072945d069ecbfe66798d977c Mon Sep 17 00:00:00 2001 From: qitan Date: Tue, 2 Apr 2024 16:03:22 +0800 Subject: [PATCH] fix solution issue --- ...aigc-text-generation-3d-model-with-ecs.yml | 2 +- .../data-transmission-from-ECS-to-RDS.yml | 48 ++++--------------- 2 files changed, 10 insertions(+), 40 deletions(-) diff --git a/documents/solution/ai/aigc-text-generation-3d-model-with-ecs.yml b/documents/solution/ai/aigc-text-generation-3d-model-with-ecs.yml index bfa6a6ce..b6a030b2 100644 --- a/documents/solution/ai/aigc-text-generation-3d-model-with-ecs.yml +++ b/documents/solution/ai/aigc-text-generation-3d-model-with-ecs.yml @@ -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: diff --git a/documents/solution/database/data-transmission-from-ECS-to-RDS.yml b/documents/solution/database/data-transmission-from-ECS-to-RDS.yml index 34fc83dd..c174e50d 100644 --- a/documents/solution/database/data-transmission-from-ECS-to-RDS.yml +++ b/documents/solution/database/data-transmission-from-ECS-to-RDS.yml @@ -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: @@ -159,7 +159,7 @@ Resources: Ref: Zone DBInstanceDescription: Test for database migration DBInstanceStorage: 20 - Category: HighAvailability + Category: Basic DBInstanceStorageType: cloud_essd VSwitchId: Ref: VSwitch @@ -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: @@ -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: @@ -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: