question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecation warning: provider.iamRoleStatements" -> "provider.iam.role.statements

See original GitHub issue

Serverless starts showing deprecation warning messages:

Serverless: Deprecation warning: Starting with version 3.0.0, following property will be replaced:
            "provider.iamRoleStatements" -> "provider.iam.role.statements"
            More Info: https://www.serverless.com/framework/docs/deprecations/#PROVIDER_IAM_SETTINGS

Migrating to the new property is not possible, because custom.serverless-iam-roles-per-function.defaultInherit only looks for provider.iamRoleStatements.

See https://github.com/functionalone/serverless-iam-roles-per-function/blob/master/src/lib/index.ts#L347

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LironErcommented, Apr 28, 2021

@Enase @glicht any update on 3.2.0(https://github.com/functionalone/serverless-iam-roles-per-function/pull/78) release?

@gdraynz you can download 3.2.0-e97ab49 version from npm until the official 3.2.0 will be released

1reaction
randomhashcommented, Feb 26, 2021

Can we simply skip it, and forget about warning? Do we need to migrate over their new feature? It’s not a problem for us that serverless will not know this props Maybe we can simply add new props and if there is nothing check old ones I guess, will take a look a this in few weeks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Serverless Framework Deprecations
The error mode turns all deprecations into strict errors, the warn mode displays ... iamRoleStatements -> provider.iam.role.statements; provider.
Read more >
iamRoleStatements should be an array of objects - Seed.run
Problem. An IAM role statement block in your serverless.yml should have Effect , Action and Resource . Serverless Framework is not able to...
Read more >
Serverless: Deprecation warning: Variables resolver reports ...
The error is: The CloudFormation template is invalid: Invalid template resource property 'ResponseType' , which tipped me off. This should work:
Read more >
serverless/serverless - Gitter
iamRoleStatements " -> "provider.iam. why does it fail? How can I fix this?
Read more >
Serverless Framework勉強する - Zenn
sls deploy Serverless: Deprecation warning: Variables resolver reports ... iamRoleStatements" -> "provider.iam.role.statements" More Info: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found