aws-amplify / aws-amplify/amplify-cli
Renaming directory fails "amplify push"
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
Renaming directory where an amplify project reside results in failed "amplify push" with reason as below:
> UPDATE_FAILED apinotestaker AWS::CloudFormation::Stack Thu Oct 08 2020 20:18:52 GMT+0800 (China Standard Time) Parameters: [S3DeploymentRootKey, S3DeploymentBucket] must have values
**Amplify CLI Version**
4.16.1
**To Reproduce**
1. create an amplify project which can be pushed successfully.
2. rename name of the project folder.
3. my project components are as:
> | Category | Resource name | Operation | Provider plugin |
| -------- | ------------------------- | --------- | ----------------- |
| Api | notestaker | Update | awscloudformation |
| Auth | notestaker | No Change | awscloudformation |
4. try "amplify push" again.
5. see the error ...
UPDATE_FAILED apinotestaker AWS::CloudFormation::Stack Thu Oct 08 2020 20:18:52 GMT+0800 (China Standard Time) Parameters: [S3DeploymentRootKey, S3DeploymentBucket] must have values
**Expected behavior**
Whether a project can be pushed successfully should have nothing to do with the folder name. At least this should be stated in documents.
**Screenshots**
N/A
**Desktop (please complete the following information):**
- OS: MacOS 10.15.6 (19G73)
- Node Version. 14.0.0
**Additional context**
N/A
Contributor guide
Research direction
No source file or test is named. Start by reproducing the failure with Amplify CLI 4.16.1 after renaming the project directory, then trace how the CLI supplies S3DeploymentRootKey and S3DeploymentBucket to the CloudFormation stack. Done means a renamed project can complete amplify push, or the limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, node.js
- Domain
- cli, cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100