You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is that my aws creds to deploy using Serverless are different from the creds used to authenticate with my k8s cluster. But I need to interact with AWS to grab some variables from CF stacks' outputs.
Set dummy variables in your env and run an sls deploy. Your dummy variables should be overwritten by those found in your ~/.kube/config and your deployment work.
The text was updated successfully, but these errors were encountered:
Description:
Env variables grabbed from user.exec.env are not used
serverless-kubeless/lib/helpers.js
Lines 130 to 135 in 0b62c54
As you can see, only the AWS_PROFILE is used.
I expect those variables to be added to the env used by the aws cli command. In my case I'm trying to unset those variables by using
The reason is that my aws creds to deploy using Serverless are different from the creds used to authenticate with my k8s cluster. But I need to interact with AWS to grab some variables from CF stacks' outputs.
I also found that
serverless-kubeless/lib/helpers.js
Line 129 in 0b62c54
serverless-kubeless/lib/helpers.js
Line 138 in 0b62c54
it should be replaced by
Cause it's what expects https://nodejs.org/api/child_process.html#child_process_child_process_execsync_command_options
Or instead variables could be added to process.env and envvars is useless
How to reproduce it (as minimally and precisely as possible):
Have a similar configuration file
Set dummy variables in your env and run an sls deploy. Your dummy variables should be overwritten by those found in your ~/.kube/config and your deployment work.
The text was updated successfully, but these errors were encountered: