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
So, I think that serverless-dotenv-plugin is not using aws codebuild env variables
That sounds correct. It only loads environment variables in dotenv file(s).
Because CodeBuild has already set those environment variables, you can reference then directly via ${env.YOUR_ENV_VAR}.
This plugin sets provider.environment for you based on the contents of the dotenv file(s). This explains why they are set on your local environment but not on CodeBuild. #38 (comment) has more details.
I recommend you set the environment variables you need directly like:
I am using serverless and serverless dotenv plugin.
And it is working properly.
But, our team move to aws codepipeline and codebuild for ci/cd.
Our project's ignore .env.* files to push github.
So, using codebuild envrionment variales.
But, it is not working.
I run this command in codebuild
And injected environment variables showing.
But node.js process.env has not.
How to inject aws codebuild environment variables to node.js process.env using serverless-dotenv-plugin?
I tried below comman in codebuild
But, it is not working.
build size is just 4.98MB but, lambda upload size too large error occured.
how to do...?
my setting info
And push my .env files to github, it is working properly.
So, I think that serverless-dotenv-plugin is not using aws codebuild env variables
Thank you.
The text was updated successfully, but these errors were encountered: