dherault / dherault/serverless-offline

Support Resolution of Cloudformation referenced environment variables

Open
#1,149 8 comments 20 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
5.3k
Forks
811
Avg merge
2d 4h
Merged PRs (30d)
3

Description

## 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?

Contributor guide

Open the contributing guide

Research direction

No files or tests are named; start by tracing serverless-offline's environment-variable resolution and compare it with the linked Serverless PRs for !Ref and !ImportValue. Done means those references resolve to usable environment-variable values instead of [Object object] during offline invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.