Skip to content

aws lambda update-function-configuration: Add --env-file option #3519

@franciscocpg

Description

@franciscocpg

often I have this boilerplate code in a shell script:

source .env

aws lambda update-function-configuration \
--region "$REGION" \
--function-name "$FUNCTION_NAME" \
--environment Variables="{\
VAR1=$VAR1,\
VAR2=$VAR2,\
VAR3=$VAR3,\
VAR4=$VAR4,\
(...)
}" > /dev/null

It would be nice if I could do this instead:

aws lambda update-function-configuration \
--region "$REGION" \
--function-name "$FUNCTION_NAME" \
--env-file .env

I'm not a python dev but if you are open to contributions and consider that this feature request makes sense I can propose a PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions