Upgrade to latest version of aws-sam-translator
See original GitHub issueI’m running into some compatibility issues in environments that use both aws-sam-cli and cfn-lint. The latest version of cfn-lint requires aws-sam-translator>=1.12.0
and aws-sam-cli requires aws-sam-translator==1.10.0
. Is there a reason the next version of aws-sam-cli can’t upgrade the aws-sam-translator version?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Upgrade to latest version of aws-sam-translator #1266 - GitHub
I'm running into some compatibility issues in environments that use both aws-sam-cli and cfn-lint. The latest version of cfn-lint requires ...
Read more >aws-sam-translator - PyPI
AWS SAM Translator is a library that transform SAM templates into AWS ... pip install aws-sam-translator. Copy PIP instructions. Latest version.
Read more >268139 – devel/py-aws-sam-translator - FreeBSD Bugzilla
FreeBSD Bugzilla – Bug 268139 devel/py-aws-sam-translator: Update to 1.55.0 Last modified: 2022-12-03 18:26:38 UTC.
Read more >I have AWS SAM local 0.2.11 but I am not able to upgrade it to ...
I am running Ubuntu Desktop 18.04 LTS. /home/ashu# sam --version A newer version of the AWS SAM CLI is available! Your version: 0.2.11...
Read more >What is the AWS Serverless Application Model (AWS SAM)?
Deep integration with development tools. You can use AWS SAM with a suite of AWS tools for building serverless applications. You can discover...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jfuss I understand that there are changes required to the aws-sam-cli to support the newer version of aws-sam-translator. Thank you for answering my question. Are there plans to make those changes soon?
Also, it sounds like you are saying that installing the aws-sam-cli with pip is no longer supported. However the documentation from AWS specifically describes using pip to install the aws-sam-cli. https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-linux.html#serverless-sam-cli-install-linux-pip
In my case, I am installing aws-sam-cli and cfn-lint as dev dependencies into a ci/cd container. That container does not have homebrew, but it does have pip, thus I am using pip to install both.
@beck3905 Yes, Pipenv uses virtualenv under the hood but it only uses one. So you are still installing multiple things into one virtualenv. This means, at any point, an upgrade to something you install will conflict with anything else (today its SAM CLI and CFN Lint, tomorrow it could be AWS CLI and SAM CLI with boto3). This makes your build and environment very fragile. Pip is a great distribution for libraries but not CLIs. Because of this, you should be creating an venv for the CLI directly and using that outside of the Pipfile.