Bug: sam build --container-env-var is not working #7370
Labels
area/build
sam build command
area/docker-lambda
blocked/close-if-inactive
Blocked for >14 days with no response, will be closed if still inactive after 7 days
type/question
Description:
sam build --parameter-overrides --use-container --container-env-var GITHUB_TOKEN="pat-token" --debug
When i run docker inspect imgae_id, GITHUB_TOKEN value is empty.
Steps to reproduce:
sam build --use-container --container-env-var GITHUB_TOKEN="pat-token" --debug
Observed result:
Expected result:
docker inspect should show the value of GITHUB_TOKEN but it's blank.
"GITHUB_TOKEN="
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:{
"version": "1.121.0",
"system": {
"python": "3.8.13",
"os": "macOS-14.5-arm64-arm-64bit"
},
"additional_dependencies": {
"docker_engine": "20.10.21",
"aws_cdk": "Not available",
"terraform": "1.5.6"
},
"available_beta_feature_env_vars": [
"SAM_CLI_BETA_FEATURES",
"SAM_CLI_BETA_BUILD_PERFORMANCE",
"SAM_CLI_BETA_TERRAFORM_SUPPORT",
"SAM_CLI_BETA_RUST_CARGO_LAMBDA"
]
}
The text was updated successfully, but these errors were encountered: