Open
Description
Description:
- sam deploy when samconfig.toml is extremely slow as compared to configuring using arguments.
- In my case, it's amounting to 3 minutes.
Steps to reproduce:
- Create a sam template that takes a few parameters
- There are 2 situations
- samconfig.toml
- Configure the parameters via
parameter_overrides
section in the samconfig.toml
- Configure the parameters via
- arguments
- Configure everything using arguments, for parameter overrides use
--parameter-overrides
- Don't use samconfig.toml (delete it)
- Configure everything using arguments, for parameter overrides use
- samconfig.toml
- Note the time difference between the 2
Observed result:
1. With samconfig.toml
2. With Command Arguments
Expected result:
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
{
"version": "1.84.0",
"system": {
"python": "3.8.10",
"os": "Linux-5.15.0-1019-aws-aarch64-with-glibc2.29"
},
"additional_dependencies": {
"docker_engine": "20.10.17",
"aws_cdk": "2.34.2 (build 7abcbc6)",
"terraform": "1.2.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"
]
}