Emulate AWS λ and API Gateway locally when developing your Serverless project
## Description <!--- Describe your changes in detail --> - Support CloudFormation the following intrinsic functions in environment variable - `Fn::Join` - `!Join` - `Fn::Sub` - `!Sub` ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> - Fix #1013 - Fix #1713 ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> example yaml: ```yaml service: aws-node-project frameworkVersion: '3' provider: name: aws runtime: nodejs18.x region: ap-northeast-1 stage: dev environment: getKeyARN: Fn::Join: - ':' - - 'arn:aws:lambda' - ${self:provider.region} - Ref: 'AWS::AccountId' - 'function' - ${self:service}-${self:provider.stage}-getKey qa: 12345 functions: function1: handler: index.handler environment: getKeyARN: Fn::Join: - ':' - - 'arn:aws:lambda' - ${self:provider.region} - Ref: 'AWS::AccountId' - 'function' - ${self:service}-${self:provider.stage}-getKey qa: 12345 plugins: - serverless-offline ``` eample js: ```js module.exports.handler = async (event) => { console.log("test") console.log(process.env) return { statusCode: 200, body: JSON.stringify( { message: 'Go Serverless v3.0! Your function executed successfully!', input: event, }, null, 2 ), }; }; ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by yo-ga and has received 0 comments.