-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sam deploy --container-env-var-file not working #6151
Comments
Hi @darhsu thanks for opening the issue. Looking at the old issues and the code snippet it seems the 2 build parameters |
Does this address the issue you are raising? #3571 (comment) |
Closing as the issue has been inactive for a while. Feel free to try the above suggestions and open a new issue if you still have questions or concerns. |
|
@tomblaze The solution you are pointing out will show up the token while running the command Metadata section is not hidden. |
Description:
I want to pass environment variables into the container but the environment variable is not being displayed.
Steps to reproduce:
sam init
# hello world example with Image package typeenv.json
Dockerfile
sam build --use-container --container-env-var-file env.json
Observed result:
Expected result:
I expected the GITHUB_TOKEN to be printed when running sam build. However, nothing is printed:
Also, I can clearly see
GITHUB_TOKEN
being set in theBuildDefinition
--debug logs.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 1.99.0Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: