dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.17k stars 794 forks source link

Support Resolution of Cloudformation referenced environment variables #1149

Open herebebogans opened 3 years ago

herebebogans commented 3 years ago

Feature Request

Resolution of Cloudformation referenced environment variables

serverless recently added better support for cloudformation referenced environment variables for sls invoke local. They currently support !Ref and !ImportValue

https://www.serverless.com/framework/docs/providers/aws/cli-reference/invoke-local#local-function-invocation-setting-environment-variables

https://github.com/serverless/serverless/pull/8157 https://github.com/serverless/serverless/pull/8198

These types of environment variables still resolve to [Object object] when using serverless-offline. Are there any plans to support them as well or suggestions on an approach to minimise the duplication of effort with serverless?

bfaulk96 commented 2 years ago

So I guess the answer is no then? 😢

ezmiller commented 2 years ago

Curious about the status of this.

mrollinsiv commented 2 years ago

Was this resolved @dherault?

thetrevdev commented 2 years ago

@dherault This doesn't look resolved

salv0 commented 2 years ago

+1 for this. Any news?

thetrevdev commented 2 years ago

@dnalborczyk

dnalborczyk commented 2 years ago

I can re-open this issue, but it appears that serverless might be responsible for the variable resolution.

cmcnicholas commented 1 year ago

any discussions or future plans for this from serverless, serverless-offline ? this is really a deal breaker for using other common serverless plugins like lift as it makes it impossible to write an integration or e2e test.