How automatic IAM permissions work in Lift
masterLift constructs are designed to be functional out of the box by automatically injecting necessary IAM permissions into Lambda functions deployed within the same serverless.yml file.
Important Limitation: Lift permissions only apply to Lambda functions deployed in the same stack (the same serverless.yml).
For example, if you define a storage construct, any function defined in the same file will automatically receive permissions to read and write to the bucket created by that construct.
# serverless.yml
constructs:
avatars:
type: storage
functions:
myFunction:
# myFunction automatically gets S3 permissions for the 'avatars' bucket