Skip to content

Commit

Permalink
fix(lambda): added comment about character calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinseq1 authored and RonWang committed Feb 26, 2021
1 parent 67d6538 commit 56cc5ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/clients/aws-client/iam-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ module.exports = class IAMClient extends AbstractAwsClient {
/**
* Generates a valid IAM Role function name.
* a IAM Role function name should follow the pattern: ask-lambda-skillName-timeStamp
* a valid role name cannot longer than 64 characters, so the skillName should be <=39 characters since
* the roleNamePrefix is 11 characters including the trailing '-' and the timeStamp is 14 characters including the '-'.
* @param {string} skillName
*/
_generateIAMRoleName(skillName) {
Expand Down

0 comments on commit 56cc5ab

Please sign in to comment.