Skip to content

Commit

Permalink
fix missing key ID (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
rculpepper authored Sep 13, 2022
1 parent 6e7ea8b commit 7f0fbe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wrappers/awskms/awskms.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ func (k *Wrapper) SetConfig(_ context.Context, opt ...wrapping.Option) (*wrappin
return nil, fmt.Errorf("key id not found in env or config for aws kms wrapper configuration")
}

k.currentKeyId.Store(k.keyId)

// Please see GetRegion for an explanation of the order in which region is parsed.
k.region, err = awsutil.GetRegion(opts.withRegion)
if err != nil {
Expand Down

0 comments on commit 7f0fbe3

Please sign in to comment.