Skip to content

Commit ff21edf

Browse files
committed
Remove pattern patching to match documentation and allow other aws partitions to work
Signed-off-by: Ryan Dyer <[email protected]>
1 parent 38b25bd commit ff21edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kms/keysource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func NewMasterKey(arn string, role string, context map[string]*string) *MasterKe
135135
func NewMasterKeyFromArn(arn string, context map[string]*string, awsProfile string) *MasterKey {
136136
k := &MasterKey{}
137137
arn = strings.Replace(arn, " ", "", -1)
138-
roleIndex := strings.Index(arn, "+arn:aws:iam::")
138+
roleIndex := strings.Index(arn, "+")
139139
if roleIndex > 0 {
140140
k.Arn = arn[:roleIndex]
141141
k.Role = arn[roleIndex+1:]

0 commit comments

Comments
 (0)