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

Bug: Rust DynamoDB Example expands Rust Hello World Example template instead #367

Closed
tripplilley opened this issue Mar 24, 2023 · 2 comments
Labels

Comments

@tripplilley
Copy link

Description:

Using the guided "AWS Quick Start Templates" workflow, when I init an app based on the "DynamoDB Example", instead of getting the template from al2/rust/hello-ddb, I get the template from al2/rust/hello. I don't know enough about the relationship between the repo, manifest, and the samcli.commands.init code to troubleshoot deeper, but I can confirm that the cookiecutter template in hello-ddb looks correct, and has DynamoDB stuff in it.

Steps to reproduce:

  • sam init
  • Choose "1 - AWS Quick Start Templates".
  • Choose "12 - DynamoDB Example"
  • Accept remaining defaults

Observed result:

Contents of expanded cookiecutter template are the same as if you'd chosen "1 - Hello World Example" with Rust on AL2 as the runtime and image.

Expected result:

Not that. Something that has DynamoDB tables in template.yaml and DynamoDB calls in the Rust source.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Darwin gina-inviere.local 21.6.0 Darwin Kernel Version 21.6.0: Mon Dec 19 20:44:01 PST 2022; root:xnu-8020.240.18~2/RELEASE_X86_64 x86_64 i386 Darwin

  2. If using SAM CLI, sam --version: SAM CLI, version 1.78.0

  3. AWS region: n/a

@tripplilley tripplilley added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Mar 24, 2023
@moelasmar moelasmar added type/bug Something isn't working and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Mar 29, 2023
@moelasmar
Copy link
Contributor

Thanks @tripplilley for raising this issue. I was able to reproduce this issue.

@qingchm
Copy link
Contributor

qingchm commented Apr 10, 2023

This has been addressed in our most recent release 1.79.0 (https://github.com/aws/aws-sam-cli/releases/tag/v1.79.0). Closing the issue here. Thanks for the ticket!

@qingchm qingchm closed this as completed Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants