增加斯耀安全组处理

This commit is contained in:
GYJ
2025-01-14 10:28:44 +08:00
parent d5cd5edd5f
commit 3c4411b325
5 changed files with 198 additions and 22 deletions

View File

@@ -17,6 +17,7 @@ var (
RegionId = "cn-hangzhou"
AccessKeyId = "LTAI5tS5pSkUwm6VURuaetxs"
AccessKeySecret = "iQFIO4MFa7tZ7HbHs0OXOaMDvMozM5"
EndPoint = "ecs-cn-hangzhou.aliyuncs.com"
)
func CreateClient() (_result *ecs20140526.Client, _err error) {
@@ -29,7 +30,7 @@ func CreateClient() (_result *ecs20140526.Client, _err error) {
AccessKeySecret: tea.String(AccessKeySecret),
}
// Endpoint 请参考 https://api.aliyun.com/product/Ecs
config.Endpoint = tea.String("ecs-cn-hangzhou.aliyuncs.com")
config.Endpoint = tea.String(EndPoint)
_result = &ecs20140526.Client{}
_result, _err = ecs20140526.NewClient(config)
return _result, _err