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

SAM Creates Permission by default for Test and Stage Why ? #1083

Closed
ashishusoni opened this issue Aug 14, 2019 · 2 comments
Closed

SAM Creates Permission by default for Test and Stage Why ? #1083

ashishusoni opened this issue Aug 14, 2019 · 2 comments

Comments

@ashishusoni
Copy link

I am seeing SAM is creating multiple aws lambda permission and not sure why
For every AWS::Serverless::Function defined in the YAML i am getting two permission which is taking away resource how we can avoid this ..

We have named our Stage to something else instead of STAGE and TEST so why would it create permission for stage and test

CreateClientModuleFunctionGetEventPermissionStage
CreateClientModuleFunctionGetEventPermissionTest

@ghost
Copy link

ghost commented Aug 14, 2019

Hi @ashishusoni I have read on other posts that the "Test" permission is required by the "Test" button in API Gateway. There has been some discussion around an option for opting out... sorry I don't have the link at hand.

I also find it crazy that with a strict 200 resource limit in CloudFormation, why we are forced to accept extra resources that are not required.

Cheers,

Mike

@jlhood
Copy link
Contributor

jlhood commented Aug 14, 2019

@Michael1d is correct. The existing issue is #285. Please feel free to +1 it to help us prioritize adding an opt-out of creating the test permission. Closing this issue as a duplicate.

@jlhood jlhood closed this as completed Aug 14, 2019
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