Skip to content

Update README for --env-vars option - #538

Closed
rishabhkrishna wants to merge 1 commit into
aws:developfrom
rishabhkrishna:patch-1
Closed

rishabhkrishna wants to merge 1 commit into
aws:developfrom
rishabhkrishna:patch-1

Conversation

@rishabhkrishna

@rishabhkrishna rishabhkrishna commented Jul 5, 2018 •

Copy link
Copy Markdown

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.

Only the variables in the Environment section will be read from the file and show up in the execution
@jfuss

jfuss commented Jul 6, 2018

Copy link
Copy Markdown
Contributor

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

@jfuss jfuss added area/docs type/documentation blocked/close-if-inactive Blocked for >14 days with no response, will be closed if still inactive after 7 days labels Jul 6, 2018
@bdunbar22

Copy link
Copy Markdown

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:

Use the ``--env-vars`` argument of ``invoke`` or ``start-api`` commands to provide a JSON file that contains values to override the environment variables already defined in your function template.

@jfuss

jfuss commented Jul 17, 2018

Copy link
Copy Markdown
Contributor

@bdunbar22 I think that is totally fair and defiantly clearer.

@rishabhkrishna Would you mind updating to @bdunbar22 suggestion so we can get this merged?

@jfuss jfuss removed the blocked/close-if-inactive Blocked for >14 days with no response, will be closed if still inactive after 7 days label Jul 17, 2018
@jfuss

jfuss commented Aug 1, 2018

Copy link
Copy Markdown
Contributor

@bdunbar22 Would you be update this or push another PR with the updates you suggested?

@jfuss jfuss added the blocked/close-if-inactive Blocked for >14 days with no response, will be closed if still inactive after 7 days label Aug 1, 2018
@bdunbar22

Copy link
Copy Markdown

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.

@jfuss

jfuss commented Aug 2, 2018

Copy link
Copy Markdown
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs blocked/close-if-inactive Blocked for >14 days with no response, will be closed if still inactive after 7 days type/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants