aws-amplify / aws-amplify/amplify-cli

Is it possible to use sub folders to manage functions?

Open
#10,681 4 comments 2 reactions 0 assignees View on GitHub
feature-request functions p4
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

**Which Category is your question related to?**

Lambda

**Amplify CLI Version**

Any

**What AWS Services are you utilizing?**

Lambda

The number of funcitons I have now in my solution is getting big and I'd like to organise them a little better. So far I've been using a naming convention which has worked but I think I'd like to put my functions into sub folders for ease. This raises a few questions though:

a) Can I even use sub folders? Will all the Amplify magic still work, is it sub folder aware?
b) How can I move existing functions around without breaking anything? I'd like to move my webhooks and dynamoDB stream stuff into separate folders for instance, how best to do that without breaking anything?
c) When creating new functions can I declare a folder in the name when I name it via the prompt I wonder?

Cheers

Pete

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.