Skip to content

Commit

Permalink
OCM-9398 | test: set CloudWatchLogsClient value for awsClient
Browse files Browse the repository at this point in the history
  • Loading branch information
xueli181114 committed Jul 8, 2024
1 parent 67483fd commit 0c54dd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/aws/aws_client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0c54dd1

Please sign in to comment.