Skip to content

Commit

Permalink
OCM-12937 | ci: Add ListKMSKeys function
Browse files Browse the repository at this point in the history
  • Loading branch information
yingzhanredhat committed Jan 2, 2025
1 parent 36dcd68 commit 929a777
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/aws/aws_client/kms.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,12 @@ func (client *AWSClient) TagKeys(kmsKeyId string, tagKey string, tagValue string
}
return output, err
}

func (client *AWSClient) ListKMSKeys() (*kms.ListKeysOutput, error) {

result, err := client.KmsClient.ListKeys(context.TODO(), &kms.ListKeysInput{})
if err != nil {
log.LogError("Got error list key: %s", err)
}
return result, err
}

0 comments on commit 929a777

Please sign in to comment.