Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #355 from fqutishat/update
Browse files Browse the repository at this point in the history
fix: key alias
  • Loading branch information
fqutishat authored Feb 10, 2023
2 parents 87a03ed + 23b4235 commit f649946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/aws/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (s *Service) Create(kt arieskms.KeyType) (string, interface{}, error) {

aliasPrefix := s.options.KeyAliasPrefix()
if strings.TrimSpace(aliasPrefix) != "" {
aliasName := fmt.Sprintf("alias/%s-%s", aliasPrefix, *result.KeyMetadata.KeyId)
aliasName := fmt.Sprintf("alias/%s_%s", aliasPrefix, *result.KeyMetadata.KeyId)

_, err = s.client.CreateAlias(context.Background(),
&kms.CreateAliasInput{AliasName: &aliasName, TargetKeyId: result.KeyMetadata.KeyId})
Expand Down

0 comments on commit f649946

Please sign in to comment.