From 0c54dd19a218f4ce463343bcd89293e8d2a9e7e8 Mon Sep 17 00:00:00 2001 From: Xue Li Date: Mon, 8 Jul 2024 10:55:55 +0800 Subject: [PATCH] OCM-9398 | test: set CloudWatchLogsClient value for awsClient --- pkg/aws/aws_client/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/aws/aws_client/client.go b/pkg/aws/aws_client/client.go index 382e52c..4d4361c 100644 --- a/pkg/aws/aws_client/client.go +++ b/pkg/aws/aws_client/client.go @@ -2,6 +2,8 @@ package aws_client import ( "context" + "os" + "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/credentials" @@ -12,7 +14,6 @@ import ( "github.com/aws/aws-sdk-go-v2/service/kms" "github.com/aws/aws-sdk-go-v2/service/ram" "github.com/aws/aws-sdk-go-v2/service/sts" - "os" "github.com/openshift-online/ocm-common/pkg/log" @@ -99,6 +100,7 @@ func CreateAWSClient(profileName string, region string, awsSharedCredentialFile KmsClient: kms.NewFromConfig(cfg), AWSConfig: &cfg, RamClient: ram.NewFromConfig(cfg), + CloudWatchLogsClient: cloudwatchlogs.NewFromConfig(cfg), } awsClient.AccountID = awsClient.GetAWSAccountID() return awsClient, nil