However, the above commits did not properly passed the AWS_PROFILE value: aws-iam-authenticator breaks because it does not know the --profile argument. Thus, I created another envvar map for child process, put AWS_PROFILE value inside the map, and passed the map to the child process.
Passing AWS_PROFILE as an environment variable will not break aws.
Thanks to contributors, dynamic EKS credentials have been supported since the following PRs(https://github.com/serverless/serverless-kubeless/pull/189, https://github.com/serverless/serverless-kubeless/pull/192).
However, the above commits did not properly passed the
AWS_PROFILE
value:aws-iam-authenticator
breaks because it does not know the--profile
argument. Thus, I created another envvar map for child process, putAWS_PROFILE
value inside the map, and passed the map to the child process.Passing
AWS_PROFILE
as an environment variable will not breakaws
.