aws-amplify / aws-amplify/amplify-cli

amplify override storage fails with cli-inputs.json missing

Open
#13,450 3 comments 1 reaction 0 assignees View on GitHub
bug override p2 storage
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### How did you install the Amplify CLI?

npm

### If applicable, what version of Node.js are you using?

14.18.3

### Amplify CLI Version

11.1.1

### What operating system are you using?

Mac

### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No manual changes made

### Describe the bug

amplify override storage

A migration is needed to override storage resources.
Recommended to try in a non-production environment first. Run "amplify env add" to create or clone an environment.
Custom CloudFormation changes will NOT be preserved, but they can be reintroduced in the override.ts file.
Learn more about this migration: https://docs.amplify.aws/cli/migration/override
Do you want to migrate storage resource "----------" to support overrides? (Y/n) · yes
🛑 cli-inputs.json file missing from the resource directory

Resolution: Please report this issue at https://github.com/aws-amplify/amplify-cli/issues and include the project identifier from: 'amplify diagnose --send-report'
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

Session Identifier: 72c3c3db-b0e5-409c-8f57-02bae96746a2
✔ An unexpected error has occurred, opt in to send an error report to AWS Amplify with non-sensitive project configuration files. Confirm (y/N) · yes

Learn more at https://docs.amplify.aws/cli/reference/diagnose/

This project has been opted in automatically to share non-sensitive project configuration files. you can opt out by running 'amplify diagnose --auto-send-off'

✅ Report saved: --------------

✔ Done

Project Identifier: ec46e3de337317b009713f747d038d93

### Expected behavior

Some kind of success message

### Reproduction steps

amplify override storage

### Project Identifier

ec46e3de337317b009713f747d038d93

### Log output

```
# Put your logs below this line
2023-12-03T21:35:52.971Z|info : amplify override storage
2023-12-03T21:35:53.019Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-12-03T21:36:42.814Z|info : amplify help core
2023-12-03T21:36:59.251Z|info : amplify help core env {"help":true,"yes":false}
2023-12-03T21:37:21.964Z|info : amplify env core list
2023-12-03T21:37:43.536Z|info : amplify override storage
2023-12-03T21:37:43.578Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-12-03T21:38:14.700Z|error : cli-inputs.json file missing from the resource directory
UnknownFault: cli-inputs.json file missing from the resource directory
2023-12-03T21:41:54.799Z|info : amplify version core
```

### Additional information

_No response_

### Before submitting, please confirm:

- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `amplify override storage` with the reported Amplify CLI and Node.js versions, then trace the storage override migration that reports the missing `cli-inputs.json` file. Done means the command handles the resource directory correctly and reaches an explicit success or actionable failure message.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.