Skip to content

Commit

Permalink
fix: aws role session name (#2712)
Browse files Browse the repository at this point in the history
AWS role session name should not contain any spaces so replacing
space with hyphen.
  • Loading branch information
koladilip committed Nov 17, 2022
1 parent c96169d commit 87f57f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/awsutils/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type SessionConfig struct {
}

func createRoleSessionName(serviceName string) string {
return fmt.Sprintf("rudderstack-aws-%s-access", strings.ToLower(serviceName))
return fmt.Sprintf("rudderstack-aws-%s-access", strings.ToLower(strings.ReplaceAll(serviceName, " ", "-")))
}

func getHttpClient(config *SessionConfig) *http.Client {
Expand Down

0 comments on commit 87f57f8

Please sign in to comment.