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

Fixed detection of Principal for Serverless 1.27 #121

Merged
merged 2 commits into from
May 8, 2018

Conversation

HyperBrain
Copy link
Member

Fixes #120

Serverless 1.27 changed the construction of the Principal propertiy in permission resources from a string to a Fn::Join. This breaks the principal detection that sorts the permissions by services for the alias stack.

I extended the principal validation to adhere to these changes. All permission objects (APIG, CWEvents and SNS) should now be attached to the correct function aliases again.

To verify the fix, check if the permissions show up in the AWS Lambda console and are attached only to the aliases, not to $LATEST.

@HyperBrain HyperBrain added this to the 1.7.1 milestone May 8, 2018
@HyperBrain HyperBrain merged commit 18d9114 into master May 8, 2018
@HyperBrain HyperBrain deleted the hotfix-serverless-1-27 branch May 8, 2018 15:07
defnotrobbie pushed a commit to 1stdibs/serverless-aws-alias that referenced this pull request Nov 14, 2022
…rless-1-27

Fixed detection of Principal for Serverless 1.27
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

Successfully merging this pull request may close these issues.

Serverless 1.27.x breaks the plugin: Any policy not added to alias of lambda function for all events
1 participant