aws-amplify / aws-amplify/amplify-cli
Command `amplify add function` in Headless Mode
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### Is this feature request related to a new or existing Amplify category?
function
### Is this related to another service?
_No response_
### Describe the feature you'd like to request
I'm working with AWS Amplify and looking for a way to automate the "amplify add function" command, ideally in a headless or scriptable format. My goal is to integrate this into a larger automation script. Unfortunately, it seems that the Amplify CLI does not natively support headless mode for this particular command.
Is there any known workaround or alternative method to achieve this? Any suggestions or guidance on how to approach this automation would be very helpful.

### Describe the solution you'd like
i don't have any solution !
### Describe alternatives you've considered
I tried to use python to interact with console and walk trought to the steps but isn't works and i got many bugs! If exist any solution with AWS SDK please give to me , because it's solve my problem better than amplify CLI.
### Additional context
_No response_
### Is this something that you'd be interested in working on?
- [ ] 👋 I may be able to implement this feature request
### Would this feature include a breaking change?
- [ ] ⚠️ This feature might incur a breaking change
Contributor guide
Research direction
The issue does not name any files, tests, or entry points. Start by reviewing how the Amplify CLI currently handles `amplify add function` prompts and existing headless commands, then define the required scriptable inputs and expected non-interactive behavior; done means the function can be created without console interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python, typescript
- Domain
- backend, cli, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100