Full Stack Serverless by Nader Dabit

Full Stack Serverless by Nader Dabit

Author:Nader Dabit [Nader Dabit]
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2020-07-19T22:00:00+00:00


IAM Permissions and Trigger Configuration

When setting up these triggers using the CLI, a couple of things are happening under the hood:

The CLI is enabling the trigger itself in the Lambda configuration. When a trigger is enabled, the event will be sent to the function every time that interaction happens (API event, S3 upload, etc.).

The CLI is giving additional permissions to the function itself to interact with other services. For instance, when we enable the S3 trigger in this chapter, we are wanting the Lambda function to be able to read and store images in that bucket.

To enable this, the CLI will add additional Identity and Access Management (IAM) policies under the hood to the function, giving it permissions like read and write access to work with S3, or permissions to interact with the Cognito user pool in our other example.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.