Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kms/keysource.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ func NewMasterKeyWithProfile(arn string, role string, context map[string]*string
func NewMasterKeyFromArn(arn string, context map[string]*string, awsProfile string) *MasterKey {
key := &MasterKey{}
arn = strings.Replace(arn, " ", "", -1)
roleIndex := strings.Index(arn, "+")
key.Arn = arn
roleIndex := strings.Index(arn, "+arn:aws:iam::")
if roleIndex > 0 {
// Overwrite ARN
key.Arn = arn[:roleIndex]
Expand Down
Loading