-
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
Bug: Paths for deploy command flags conflict #7575
Comments
Thanks for reporting this issue.
So when you define your template file location, SAM CLI will look for |
Interesting, I wasn't aware it shouldn't be set to This behavior makes sense to me when running I also find it confusing because |
My recommendation would be, moving If we change this behavior, we will be breaking existing customers, who already adopted using this way. |
Description:
I'm attempting to specify both a
--config-file
and--template-file
in different directories. Both files exist, but if the template file is in a different directory, that seems to become the working directory.Working commands:
sam deploy --config-file samconfig.foo.toml --template-file foo-template.yaml
sam deploy --config-file ../../samconfig.foo.toml --template-file path/to/foo-template.yaml
Command fails:
sam deploy --config-file samconfig.foo.toml --template-file path/to/foo-template.yaml
Error message:
Error: Config file samconfig.foo.toml does not exist or could not be read!
Steps to reproduce:
sam deploy
command specifying the locations of bothObserved result:
Expected result:
The deploy is able advance with the proper configs. I was unable to find any info in the docs saying that specifying the
--template-file
command would change the working directory.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: