aws / aws/aws-sam-cli

local invoke --env-vars should process .yml files as well - not just .json

Open
#3,113 3 comments 1 reaction 0 assignees View on GitHub
area/local/invoke stage/pm-review type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### enhancement - feature request

`sam local invoke --env-vars` should also be able to process .yml files.
As of now, it has to be a .json file.

### Proposal

i.e. cloudformation does allow to load environment variables from a .yml file for example with
```yaml
provider:
environment: ${file(./env.yml)}
```

So it would be handy if I could reuse the file.

Thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.