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

docs(apigateway): fix sample layout provided #864

Merged
merged 2 commits into from
Dec 3, 2021

Conversation

michaelbrewer
Copy link
Contributor

@michaelbrewer michaelbrewer commented Dec 1, 2021

Current version does not work when deployed

Issue #, if available:

Description of changes:

Fixes the sample layout for multiple file project

Checklist

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


View rendered docs/core/event_handler/api_gateway.md

Current version does not work when deployed
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 1, 2021
@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Dec 1, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 1, 2021

Codecov Report

Merging #864 (8466a5a) into develop (8cfa773) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #864   +/-   ##
========================================
  Coverage    99.90%   99.90%           
========================================
  Files          118      118           
  Lines         5125     5125           
  Branches       283      283           
========================================
  Hits          5120     5120           
  Misses           2        2           
  Partials         3        3           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8cfa773...8466a5a. Read the comment docs.

Copy link
Contributor

@heitorlessa heitorlessa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change as we don't build w Lambda Layer for ARM yet, and one question

@@ -1073,6 +1072,8 @@ This sample project contains an Users function with two distinct set of routes,
MemorySize: 512
Runtime: python3.9
Tracing: Active
Architectures:
- arm64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We build Layer for x86 only atm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

making it x86_64 for now :)

.
├── Pipfile # project app & dev dependencies; poetry, pipenv, etc.
├── Pipfile # project app & dev dependencies; poetry, pipenv, etc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we update to poetry pyproject.tomo since we're gonna update the sample cookiecutter already?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heitorlessa - currently I like Pipefile as this is the default for SAM cli and Amplify templates. However I am cool to switch to Poetry

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So let's keep as-is until we migrate others.

@heitorlessa
Copy link
Contributor

Thanks a lot for helping revert to the previous sample

@michaelbrewer
Copy link
Contributor Author

But it works. ;-)

One minor change as we don't build w Lambda Layer for ARM yet, and one question

@heitorlessa
Copy link
Contributor

heitorlessa commented Dec 2, 2021 via email

@heitorlessa
Copy link
Contributor

On a more serious note though, Tracer uses X-Ray SDK which depends on wrapt that uses C bindings.

Unless wrapt is giving a wheel for all platforms - like Pydantic - instead of the platform in question, then in theory Tracer shouldn't work.

All else should work as we don't depend on C bindings but pure Python.

@michaelbrewer
Copy link
Contributor Author

@heitorlessa - updated.

@heitorlessa heitorlessa changed the title fix(docs): correct sample layout docs(apigateway): fix sample layout provided Dec 3, 2021
@heitorlessa heitorlessa merged commit fcfa2e4 into aws-powertools:develop Dec 3, 2021
@heitorlessa heitorlessa deleted the doc-updated-layout branch December 3, 2021 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants