Repository navigation
Update README for --env-vars option - #538
rishabhkrishna wants to merge 1 commit into
Conversation
Only the variables in the Environment section will be read from the file and show up in the execution
|
@rishabhkrishna Thanks for the PR but not sure if this is actually needed. The Environments section already explains this. "If your Lambda function uses environment variables, you can provide values for them will passed to the Docker container. Here is how you would do it:". If the values are not in the template, you can't expect them to show up. The file is only to override the values: "Use --env-vars argument of invoke or start-api commands to provide a JSON file that contains values for environment variables defined in your function." Maybe the wording of what we already have needs to be more clear? |
|
Hi @jfuss, I ran into this as well recently. After rereading the docs I think your current wording is valid, but for me a more clear wording would be:
|
|
@bdunbar22 I think that is totally fair and defiantly clearer. @rishabhkrishna Would you mind updating to @bdunbar22 suggestion so we can get this merged? |
|
@bdunbar22 Would you be update this or push another PR with the updates you suggested? |
|
Hi @jfuss, Yes I should have some time tonight or tomorrow to create one (I don't think I'd have push access to this one). I will mention you in a comment when it is ready. |
|
@bdunbar22 Awesome! Thanks taking this on. Given that and no response from @rishabhkrishna I will close this PR out in favor of the one from @bdunbar22 |
Only the variables in the Environment section will be read from the file and show up in the execution
*Issue #381 , Updating readme for this issue
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.