diff --git a/pkg/aws/service.go b/pkg/aws/service.go index 4977855..6210541 100644 --- a/pkg/aws/service.go +++ b/pkg/aws/service.go @@ -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})