Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can we pass environment variables while updating lambda ?

Shubhanshu Chouhan July 9, 2019

I was implementing `aws-lambda-deploy` pipe in my bitbucket pipeline, but I was not able to find a way to update environment variables of lambda.

 

We can do it easily while deploying via old method, using boto3 library.

 

update_function_configuration( FunctionName=functionName, Environment={  'Variables': { 'environment' : environment, 'NODE_ENV': environment, 'api_url' : api_url } } )

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 10, 2019

Hello Shubhanshu Chouhan,

Thank you for your feedback!

For now, pipe aws-lambda-deploy implements update code and create/update alias functionality. It's a good suggestion to have update_function_configuration in the current pipe. Will be added in the nearest future.

Feel free to provide us any feedback on your experience with pipes.
Also, we provide an updated page where you can discover and try other available pipes .

Cheers, 
Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events