serverless-offline icon indicating copy to clipboard operation
serverless-offline copied to clipboard

Support Resolution of Cloudformation referenced environment variables

Open herebebogans opened this issue 4 years ago • 8 comments

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?

herebebogans avatar Dec 22 '20 08:12 herebebogans

So I guess the answer is no then? 😢

bfaulk96 avatar Aug 25 '21 21:08 bfaulk96

Curious about the status of this.

ezmiller avatar May 05 '22 18:05 ezmiller

Was this resolved @dherault?

mrollinsiv avatar May 19 '22 11:05 mrollinsiv

@dherault This doesn't look resolved

thetrevdev avatar Jun 26 '22 21:06 thetrevdev

+1 for this. Any news?

salv0 avatar Jul 18 '22 15:07 salv0

@dnalborczyk

thetrevdev avatar Jul 20 '22 21:07 thetrevdev

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

dnalborczyk avatar Jul 21 '22 00:07 dnalborczyk

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.

cmcnicholas avatar Jun 29 '23 18:06 cmcnicholas