Skip to content
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

sam init: "Error: Multiple lambda image application templates found" #95

Closed
justinmk3 opened this issue Mar 19, 2021 · 5 comments
Closed
Labels
type/bug Something isn't working

Comments

@justinmk3
Copy link

justinmk3 commented Mar 19, 2021

This started happening in our CI today. Maybe caused by 27dce06 ?

$ sam init --name testProject --no-interactive --dependency-manager pip --package-type Image --base-image amazon/python3.8-base

Cloning app templates from https://github.com/aws/aws-sam-cli-app-templates
Error: Multiple lambda image application templates found. This should not be possible, please raise an issue.

Note the above command uses python3.8-base ; this does not happen with e.g. python3.7-base :

$ sam init --name testProject --no-interactive --dependency-manager pip --package-type Image --base-image amazon/python3.7-base
@justinmk3
Copy link
Author

@aahung @satmihir

@KFayal
Copy link

KFayal commented Mar 20, 2021

Just experienced the same issue when trying to select python3.8

@justinmk3
Copy link
Author

For reference: cannot use --app-template to workaround this, because sam does not allow it with --base-image:

Error:
You must not provide both the --base-image and --app-template parameters.

@justinmk3
Copy link
Author

from aws/aws-sam-cli#2846 (comment) :

The issue is fixed in V.1.24.0
you can now use the --app-template argument to resolve this. For example:

sam init --name foo --package-type Image --base-image amazon/python3.8-base --app-template hello-world-lambda-im

@jfuss
Copy link
Contributor

jfuss commented Nov 30, 2021

This has been fixed in 1.24 of SAM CLI. Closing.

@jfuss jfuss closed this as completed Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants