Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using custom IAM role causes TypeError: Cannot read property 'Properties' of undefined #5

Open
eballetbaz opened this issue Sep 9, 2020 · 1 comment

Comments

@eballetbaz
Copy link

When using a custom IAM role in serverless.yml it causes a "TypeError: Cannot read property 'Properties' of undefined"

Sample conf:

provider:
  name: aws
  region: eu-west-1
  role: arn:aws:iam::0123456789:role/roleInMyAccount

Full error stack

 TypeError: Cannot read property 'Properties' of undefined
     at AWSNaming.fixLogGroups (C:\xxx\node_modules\serverless-aws-resource-names\naming.js:78:33)
     at C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\lib\classes\PluginManager.js:498:55
     at tryCatcher (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\util.js:16:23)
     at Object.gotValue (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\reduce.js:168:18)
     at Object.gotAccum (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\reduce.js:155:25)
     at Object.tryCatcher (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\util.js:16:23)
     at Promise._settlePromiseFromHandler (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:547:31)
     at Promise._settlePromise (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:604:18)
     at Promise._settlePromise0 (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:649:10)
     at Promise._settlePromises (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:729:18)
     at _drainQueueStep (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\async.js:93:12)
     at _drainQueue (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\async.js:86:9)
     at Async._drainQueues (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\async.js:102:5)
     at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\eballet-baz\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\async.js:15:14)
eballetbaz pushed a commit to eballetbaz/serverless-plugin-aws-resource-names that referenced this issue Sep 15, 2020
concon121 added a commit that referenced this issue Sep 15, 2020
…am_role

Fix issue #5 - Using custom IAM role causes TypeError: Cannot read property 'Properties' of undefined
@concon121
Copy link
Owner

Merged and published a new version, thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants