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 tech solution 08 and 80 #181

Merged
merged 1 commit into from
Jan 25, 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 @@ -135,6 +135,7 @@ Parameters:
numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol in).
zh-cn: '长度8-30,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;''<>,.?/ 中的特殊符号)。'
AllowedPattern: '[0-9A-Za-z\_\-\&:;''<>,=%`~!@#\(\)\$\^\*\+\|\{\}\[\]\.\?\/]+$'
AssociationProperty: ALIYUN::ECS::Instance::Password
AssociationPropertyMetadata:
Visible:
Condition:
Expand Down Expand Up @@ -163,6 +164,7 @@ Parameters:
MinLength: 8
MaxLength: 32
NoEcho: true
AssociationProperty: ALIYUN::ECS::Instance::Password
Resources:
Vpc:
Type: 'ALIYUN::ECS::VPC'
Expand Down Expand Up @@ -639,4 +641,4 @@ Metadata:
Label:
default: ECS
TemplateTags:
- 'acs:technical-solution:cloud-migration:操作系统迁移-tech_solu_80'
- 'acs:technical-solution:cloud-migration:CentOS到Alinux操作系统迁移-tech_solu_80'
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,15 @@ Resources:
Type: RunShellScript
Frequency: '0 * * * * ?'
Timed: true
CommandContent: |-
CommandContent: >-
#!/bin/bash

cur_date=$(date +'%d/%b/%Y')
echo "127.0.0.0 - - [${cur_date}:$(date +'%H:%M:%S %z')] \"GET / HTTP/1.1\" 200 4897 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\"" | tee -a /var/log/nginx/access.log

echo "127.0.0.0 - - [${cur_date}:$(date +'%H:%M:%S %z')] \"GET /
HTTP/1.1\" 200 4897 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\""
| tee -a /var/log/nginx/access.log
DependsOn:
- InstallNginx
InstallLogAgent:
Expand Down Expand Up @@ -440,35 +445,6 @@ Resources:
Type: ALIYUN::ROS::AutoEnableService
Properties:
ServiceName: OSS
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- VSwitchZoneId
- EcsInstanceType
- EcsImageId
- EcsDiskCategory
Label:
default:
en: ECS configure
zh-cn: 云服务器ECS配置
- Parameters:
- SlsProjectName
- SlsLogstoreName
Label:
default:
en: SLS
zh-cn: 日志服务SLS配置
- Parameters:
- OssBucketName
Label:
default:
en: OSS bucket
zh-cn: 对象存储OSS配置
TemplateTags:
- acs:technical-solution:internet-application-development:应用日志数据归档-tech_solu_08
Hidden:
- CommonName
Outputs:
VpcId:
Description: Vpc id.
Expand Down Expand Up @@ -502,4 +478,33 @@ Outputs:
- - 'oss-export'
- Fn::GetAtt:
- RoleNameSuffix
- value
- value
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- VSwitchZoneId
- EcsInstanceType
- EcsImageId
- EcsDiskCategory
Label:
default:
en: ECS configure
zh-cn: 云服务器ECS配置
- Parameters:
- SlsProjectName
- SlsLogstoreName
Label:
default:
en: SLS
zh-cn: 日志服务SLS配置
- Parameters:
- OssBucketName
Label:
default:
en: OSS bucket
zh-cn: 对象存储OSS配置
Hidden:
- CommonName
TemplateTags:
- acs:technical-solution:internet-application-development:应用日志数据归档-tech_solu_08