-
Notifications
You must be signed in to change notification settings - Fork 216
Wrong policy state machine generation for lambda arn #302
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
Comments
@nikita-clearscale do you have an example of the State Machine IAM role that was generated? you can find it in the CF update stack in the .serverless folder |
@theburningmonk Yes look at generate role:
Recall - you can generate this manually from github project - https://github.com/C-h-e-r-r-y/step-function-policy-generation-bug |
Looks like there is shoud be one "additional" |
As a workaround - use dummy
|
This is a Bug Report
Description
Entire reproducable code you can find here
The prblem is a policy generation error for state machine when it need to invoke lambda function. The problem appeared when lambda function is passed as arn with pseudo parameters.
MyArn: arn:aws:lambda:#{AWS::Region}:#{AWS::AccountId}:function:${file(${self:custom.varFile}):custom.Name}
``
For bug reports:
Feel free to ask any questions.
The text was updated successfully, but these errors were encountered: