Skip to content

Commit

Permalink
Merge pull request #63 from xueli181114/OCM-9398
Browse files Browse the repository at this point in the history
OCM-9398 | test: set CloudWatchLogsClient value for awsClient
  • Loading branch information
ciaranRoche authored Jul 8, 2024
2 parents 67483fd + 0c54dd1 commit 989f9a6
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 989f9a6

Please sign in to comment.