Running Serverless by Gojko Adzic

Running Serverless by Gojko Adzic

Author:Gojko Adzic
Language: eng
Format: epub, mobi
Publisher: Neuri Consulting LLP
Published: 2019-07-02T00:00:00+00:00


SAM can configure environment variables for a function using the Environment property. It must have a Variables sub-property, which can then contain a map of keys and values. We can use the !Ref function to convert the logical name of a CloudFormation resource into its physical ID. Add the following three lines to the ProcessFormFunction template, at the same indentation level as other function properties (so Environment should be aligned with Events):

ch7/template.yaml

47 Environment: 48 Variables: 49 UPLOAD_S3_BUCKET: !Ref UploadS3Bucket



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.