question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade to latest version of aws-sam-translator

See original GitHub issue

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 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
beck3905commented, Jul 10, 2019

@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.

0reactions
jfusscommented, Jul 15, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found