Giter VIP home page Giter VIP logo

Comments (4)

ykarakita avatar ykarakita commented on May 28, 2024

Hi, I have same problem. It would be good to be able to custom each role names too!

from serverless-iam-roles-per-function.

glicht avatar glicht commented on May 28, 2024

Hi,

Thanks for the feedback. Just to understand, are the errors you are seeing as a result of the role name exceeding the AWS role name limit (If I am not mistaken this limit is 64 chars)? If so, sounds like the plugin should at least do a sanity check on the generated name length and break early as a start.

Would adding a field of the sort: iamRoleStatementsName where you can specify the name is what you are after?

Another option I see, is providing a global configuration which provides some control how these names are generated. Currently the plugin is using the serverless framework's naming convention with an added "function name" after the stage section in the name.

from serverless-iam-roles-per-function.

ballwood avatar ballwood commented on May 28, 2024

Yeah it seems to be the 64 character limit on AWS: getting the error 'roleName' failed to satisfy constraint: Member must have length less than or equal to 64.

Any of solutions would be good 👍 , I'd be leaning towards iamRoleStatementsName maybe as its more declarative in the serverless.yml file? Either way will work fine though! Cheers :)

from serverless-iam-roles-per-function.

glicht avatar glicht commented on May 28, 2024

I've just published version 0.1.3 with support for defining a custom name via iamRoleStatementsName property. Also, put in a validation to fail early if the default generated role name is longer than 64 chars.

from serverless-iam-roles-per-function.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.