aws-amplify / aws-amplify/amplify-cli
`Output 'UserPoolId' not found in stack` on schema update
- 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?
v14.19.1
### Amplify CLI Version
10.6.2
### What operating system are you using?
macOS
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
### Describe the bug
`amplify push` fails with Deployment Fault after modifying the GraphQL schema, adding @auth owner directive to one model and @model and @auth directive to the second type
### Expected behavior
`amplify push` succeeds
### Reproduction steps
```
1. amplify init -y
2. amplify add analytics (this also adds auth)
3. amplify push -y
4. amplify add api (all defaults)
type UserTable @model {
id: String
username: String
age: Int
email: String
createdAt: AWSDateTime
updatedAt: AWSDateTime
gender: String
avatarSquare: String
avatarRounded: String
phoneNumber: String! @index
givenName: String
middleName: String
familyName: String
}
type User {
id: String
username: String
age: Int
email: String
createdAt: AWSDateTime
updatedAt: AWSDateTime
gender: String
avatarSquare: String
avatarRounded: String
phoneNumber: String
}
5. amplify push -y
6. update schema to
type UserTable @model @auth(rules: [{ allow: owner }]) {
id: String
username: String
age: Int
email: String
createdAt: AWSDateTime
updatedAt: AWSDateTime
gender: String
avatarSquare: String
avatarRounded: String
phoneNumber: String! @index
givenName: String
middleName: String
familyName: String
}
type User @model @auth(rules: [{ allow: owner }]) {
id: String
username: String
age: Int
email: String
createdAt: AWSDateTime
updatedAt: AWSDateTime
gender: String
avatarSquare: String
avatarRounded: String
phoneNumber: String
}
7. amplify push -y
```
Results in Deployment Fault and the CloudFormation error Output 'UserPoolId' not found in stack 'arn:aws:cloudformation:us-east-2...
### Project Identifier
7f61fd74d9f871d046025c8e39b67329
### Log output
_No response_
### 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
Assessment
This issue has not been assessed yet.